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

Unified Diff: chrome/browser/extensions/extension_browser_event_router.cc

Issue 7400003: Start the extension event routers for each profile, not just at browser startup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 5 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/browser_main.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_browser_event_router.cc
diff --git a/chrome/browser/extensions/extension_browser_event_router.cc b/chrome/browser/extensions/extension_browser_event_router.cc
index 66a2cf01501549ad6be4a7c921d3533c1dbc688d..9b723d30822efb7a9b8a989d2733e30296536633 100644
--- a/chrome/browser/extensions/extension_browser_event_router.cc
+++ b/chrome/browser/extensions/extension_browser_event_router.cc
@@ -115,13 +115,13 @@ ExtensionBrowserEventRouter::~ExtensionBrowserEventRouter() {
}
void ExtensionBrowserEventRouter::OnBrowserAdded(const Browser* browser) {
- if (!profile_->IsSameProfile(browser->profile()))
- return;
RegisterForBrowserNotifications(browser);
}
void ExtensionBrowserEventRouter::RegisterForBrowserNotifications(
const Browser* browser) {
+ if (!profile_->IsSameProfile(browser->profile()))
+ return;
// Start listening to TabStripModel events for this browser.
browser->tabstrip_model()->AddObserver(this);
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698