diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-22 23:19:49 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-22 23:19:49 +0000 |
commit | dc7dfc4c3048fef997fd6aedb0f9437e574bf70c (patch) | |
tree | 5cbdb3ab2c04180641af049ce8f1cde5a3844023 /chrome/browser/notifications | |
parent | d8e6018fb0b2d37104326a5c87b8d50e5ef8fa0e (diff) | |
download | chromium_src-dc7dfc4c3048fef997fd6aedb0f9437e574bf70c.zip chromium_src-dc7dfc4c3048fef997fd6aedb0f9437e574bf70c.tar.gz chromium_src-dc7dfc4c3048fef997fd6aedb0f9437e574bf70c.tar.bz2 |
BalloonHost: remove vestigal virtual functions
The comments say these were implementing an interface, but the interface
no longer has these functions. (I found this when I tried to add OVERRIDEs
to this class.)
Review URL: http://codereview.chromium.org/7482012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93734 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications')
-rw-r--r-- | chrome/browser/notifications/balloon_host.cc | 12 | ||||
-rw-r--r-- | chrome/browser/notifications/balloon_host.h | 2 |
2 files changed, 2 insertions, 12 deletions
diff --git a/chrome/browser/notifications/balloon_host.cc b/chrome/browser/notifications/balloon_host.cc index 0c840a9..4e3b508 100644 --- a/chrome/browser/notifications/balloon_host.cc +++ b/chrome/browser/notifications/balloon_host.cc @@ -31,7 +31,7 @@ BalloonHost::BalloonHost(Balloon* balloon) should_notify_on_disconnect_(false), enable_web_ui_(false), ALLOW_THIS_IN_INITIALIZER_LIST( - extension_function_dispatcher_(GetProfile(), this)) { + extension_function_dispatcher_(balloon_->profile(), this)) { CHECK(balloon_); site_instance_ = SiteInstance::CreateSiteInstanceForURL(balloon_->profile(), GetURL()); @@ -65,20 +65,12 @@ const string16& BalloonHost::GetSource() const { WebPreferences BalloonHost::GetWebkitPrefs() { WebPreferences web_prefs = - RenderViewHostDelegateHelper::GetWebkitPrefs(GetProfile(), + RenderViewHostDelegateHelper::GetWebkitPrefs(balloon_->profile(), enable_web_ui_); web_prefs.allow_scripts_to_close_windows = true; return web_prefs; } -SiteInstance* BalloonHost::GetSiteInstance() const { - return site_instance_.get(); -} - -Profile* BalloonHost::GetProfile() const { - return balloon_->profile(); -} - const GURL& BalloonHost::GetURL() const { return balloon_->notification().content_url(); } diff --git a/chrome/browser/notifications/balloon_host.h b/chrome/browser/notifications/balloon_host.h index 4393665..35ba1ff 100644 --- a/chrome/browser/notifications/balloon_host.h +++ b/chrome/browser/notifications/balloon_host.h @@ -51,8 +51,6 @@ class BalloonHost : public RenderViewHostDelegate, // RenderViewHostDelegate overrides. virtual WebPreferences GetWebkitPrefs(); - virtual SiteInstance* GetSiteInstance() const; - virtual Profile* GetProfile() const; virtual const GURL& GetURL() const; virtual void Close(RenderViewHost* render_view_host); virtual void RenderViewCreated(RenderViewHost* render_view_host); |