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

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: Rebase 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
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698