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

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

Issue 7717025: Do not initialize event routers in the Profile Import process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: reset will_import_ value when import complete. Created 9 years, 4 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_service.h ('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_service.cc
===================================================================
--- chrome/browser/extensions/extension_service.cc (revision 97857)
+++ chrome/browser/extensions/extension_service.cc (working copy)
@@ -670,6 +670,11 @@
}
}
+void ExtensionService::InitEventRoutersAfterImport() {
+ registrar_.Add(this, chrome::NOTIFICATION_IMPORT_FINISHED,
+ Source<Profile>(profile_));
+}
+
void ExtensionService::InitEventRouters() {
if (event_routers_initialized_)
return;
@@ -2690,6 +2695,12 @@
}
break;
}
+ case chrome::NOTIFICATION_IMPORT_FINISHED: {
+ registrar_.Remove(this, chrome::NOTIFICATION_IMPORT_FINISHED,
+ Source<Profile>(profile_));
+ InitEventRouters();
+ break;
+ }
default:
NOTREACHED() << "Unexpected notification type.";
« no previous file with comments | « chrome/browser/extensions/extension_service.h ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698