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) |