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

Unified Diff: chrome/browser/profiles/profile_impl.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/extensions/extension_browser_event_router.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index aff0315d210c3d6617af7441f81d9fc4da843e84..649a8fa4f888a1dfb35a5c60f8d2dc9c27a56a66 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -484,6 +484,16 @@ void ProfileImpl::InitExtensions(bool extensions_enabled) {
// Make the chrome://extension-icon/ resource available.
GetChromeURLDataManager()->AddDataSource(new ExtensionIconSource(this));
+
+ // Initialize extension event routers. Note that on Chrome OS, this will
+ // not succeed if the user has not logged in yet, in which case the
+ // event routers are initialized in LoginUtilsImpl::CompleteLogin instead.
+ // The InitEventRouters call used to be in BrowserMain, because when bookmark
+ // import happened on first run, the bookmark bar was not being correctly
+ // initialized (see issue 40144). Now that bookmarks aren't imported and
+ // the event routers need to be initialized for every profile individually,
+ // initialize them with the extension service.
+ extension_service_->InitEventRouters();
}
void ProfileImpl::RegisterComponentExtensions() {
« no previous file with comments | « chrome/browser/extensions/extension_browser_event_router.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698