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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 6976030: Start the event routers with the extension service, so that they're correctly started for each pr... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Reland, now that event routers have been fixed Created 9 years, 6 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') | 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
===================================================================
--- chrome/browser/profiles/profile_impl.cc (revision 90755)
+++ chrome/browser/profiles/profile_impl.cc (working copy)
@@ -485,6 +485,16 @@
// 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/browser_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698