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() { |