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

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

Issue 6125003: Make ExtensionBrowserEventRouter owned by ExtensionService.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/gtk/browser_actions_toolbar_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc (revision 71520)
+++ chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/browser/gtk/browser_actions_toolbar_gtk.h"
+#include <algorithm>
#include <vector>
#include "base/i18n/rtl.h"
@@ -277,7 +278,9 @@
if (action->ShowPopup(false))
return;
- ExtensionBrowserEventRouter::GetInstance()->BrowserActionExecuted(
+ ExtensionService* service =
+ action->toolbar_->browser()->profile()->GetExtensionService();
+ service->browser_event_router()->BrowserActionExecuted(
action->toolbar_->browser()->profile(), action->extension_->id(),
action->toolbar_->browser());
}
@@ -368,7 +371,7 @@
if (!extension_service)
return;
- overflow_button_.reset(new CustomDrawButton(
+ overflow_button_.reset(new CustomDrawButton(
theme_provider_,
IDR_BROWSER_ACTIONS_OVERFLOW,
IDR_BROWSER_ACTIONS_OVERFLOW_P,
@@ -680,7 +683,8 @@
chevron(),
false);
} else {
- ExtensionBrowserEventRouter::GetInstance()->BrowserActionExecuted(
+ ExtensionService* service = browser()->profile()->GetExtensionService();
+ service->browser_event_router()->BrowserActionExecuted(
browser()->profile(), extension->id(), browser());
}
}
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698