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

Unified Diff: chrome/browser/ui/browser.cc

Issue 9428018: Create BaseWindow and ExtensionWindowWrapper for extension API access to Panels (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments. Created 8 years, 10 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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index c738146a453d5b7d423e30a30f1e3c4c711fcdae..9813d78b3d436445d1d31e2b0cf31cf485b6c33c 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -49,6 +49,7 @@
#include "chrome/browser/download/download_util.h"
#include "chrome/browser/extensions/crx_installer.h"
#include "chrome/browser/extensions/default_apps_trial.h"
+#include "chrome/browser/extensions/browser_extension_window_controller.h"
#include "chrome/browser/extensions/extension_browser_event_router.h"
#include "chrome/browser/extensions/extension_disabled_infobar_delegate.h"
#include "chrome/browser/extensions/extension_prefs.h"
@@ -568,6 +569,10 @@ void Browser::InitBrowserWindow() {
}
#endif
+ // Create the extension window controller before sending notifications.
+ extension_window_controller_.reset(
+ new BrowserExtensionWindowController(this));
+
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_BROWSER_WINDOW_READY,
content::Source<Browser>(this),
@@ -1842,8 +1847,8 @@ void Browser::ToggleFullscreenMode() {
fullscreen_controller_->ToggleFullscreenMode();
}
-void Browser::ToggleFullscreenModeWithExtension(const Extension& extension) {
- fullscreen_controller_->ToggleFullscreenModeWithExtension(extension);
+void Browser::ToggleFullscreenModeWithExtension(const GURL& extension_url) {
+ fullscreen_controller_->ToggleFullscreenModeWithExtension(extension_url);
}
#if defined(OS_MACOSX)

Powered by Google App Engine
This is Rietveld 408576698