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

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

Issue 8480007: Change EXTENSION_PROCESS_CREATED observers to use EXTENSION_HOST_CREATED. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
Index: chrome/browser/extensions/extension_process_manager.cc
diff --git a/chrome/browser/extensions/extension_process_manager.cc b/chrome/browser/extensions/extension_process_manager.cc
index b79a35e3f3f32ad45e8892502deae32fee473e9a..ae71ea37c70106f69eb6eb0c94aab87bea587b3f 100644
--- a/chrome/browser/extensions/extension_process_manager.cc
+++ b/chrome/browser/extensions/extension_process_manager.cc
@@ -97,7 +97,8 @@ ExtensionProcessManager* ExtensionProcessManager::Create(Profile* profile) {
}
ExtensionProcessManager::ExtensionProcessManager(Profile* profile)
- : browsing_instance_(new BrowsingInstance(profile)) {
+ : browsing_instance_(new BrowsingInstance(profile)),
+ profile_(profile) {
Profile* original_profile = profile->GetOriginalProfile();
registrar_.Add(this, chrome::NOTIFICATION_EXTENSIONS_READY,
content::Source<Profile>(original_profile));
@@ -536,7 +537,7 @@ void ExtensionProcessManager::OnExtensionHostCreated(ExtensionHost* host,
background_hosts_.insert(host);
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_HOST_CREATED,
- content::Source<ExtensionProcessManager>(this),
+ content::Source<Profile>(profile_),
content::Details<ExtensionHost>(host));
}

Powered by Google App Engine
This is Rietveld 408576698