Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Unified Diff: chrome/browser/ui/views/ash/panel_view_aura.cc

Issue 10021071: Remove Browser dependency in ExtensionFunctionDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/ash/panel_view_aura.cc
diff --git a/chrome/browser/ui/views/ash/panel_view_aura.cc b/chrome/browser/ui/views/ash/panel_view_aura.cc
index b54be01633b046a3751a5baa197e074303904d9f..6f25443f1af31e1be6f29ab7737000b09fe09afc 100644
--- a/chrome/browser/ui/views/ash/panel_view_aura.cc
+++ b/chrome/browser/ui/views/ash/panel_view_aura.cc
@@ -54,7 +54,8 @@ class PanelHost : public content::WebContentsDelegate,
Profile* profile() const { return profile_; }
// ExtensionFunctionDispatcher::Delegate overrides.
- virtual Browser* GetBrowser() OVERRIDE;
+ virtual ExtensionWindowController* GetExtensionWindowController()
sky 2012/05/03 21:04:47 nit: wrap function name to next line.
+ const OVERRIDE;
virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE;
// content::WebContentsDelegate implementation:
@@ -111,8 +112,8 @@ void PanelHost::Init(const GURL& url) {
url, content::Referrer(), content::PAGE_TRANSITION_LINK, std::string());
}
-Browser* PanelHost::GetBrowser() {
- return NULL;
+ExtensionWindowController* PanelHost::GetExtensionWindowController() const {
+ return panel_view_->extension_window_controller();
}
content::WebContents* PanelHost::GetAssociatedWebContents() const {
« chrome/browser/notifications/balloon_host.h ('K') | « chrome/browser/notifications/balloon_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698