Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index f8a99437c864cc2a7c13e7ff4df043fc7f26eb11..4e546fa7eee67b9cf2b40743313df3541701b364 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" |
@@ -576,6 +577,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), |
@@ -1875,8 +1880,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) |