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 8fd5538c62bc446cbb88a486eb3cb28a6cc3a707..f611118d2dede5602311453ab5f20c001b4515e1 100644 |
--- a/chrome/browser/extensions/extension_process_manager.cc |
+++ b/chrome/browser/extensions/extension_process_manager.cc |
@@ -279,18 +279,15 @@ void ExtensionProcessManager::Observe(NotificationType type, |
const NotificationSource& source, |
const NotificationDetails& details) { |
switch (type.value) { |
- case NotificationType::EXTENSIONS_READY: |
+ case NotificationType::EXTENSIONS_READY: { |
CreateBackgroundHosts(this, |
Source<Profile>(source).ptr()->GetExtensionsService()->extensions()); |
break; |
+ } |
case NotificationType::EXTENSION_LOADED: { |
- ExtensionsService* service = |
- Source<Profile>(source).ptr()->GetExtensionsService(); |
- if (service->is_ready()) { |
- const Extension* extension = Details<const Extension>(details).ptr(); |
- ::CreateBackgroundHost(this, extension); |
- } |
+ const Extension* extension = Details<const Extension>(details).ptr(); |
+ ::CreateBackgroundHost(this, extension); |
break; |
} |
@@ -454,7 +451,7 @@ void IncognitoExtensionProcessManager::Observe( |
if (browser->profile() == browsing_instance_->profile()) { |
ExtensionsService* service = |
browsing_instance_->profile()->GetExtensionsService(); |
- if (service && service->is_ready()) |
+ if (service) |
Aaron Boodman
2010/11/18 07:49:03
service should always exist here.
Sam Kerner (Chrome)
2010/11/18 15:34:01
Done.
|
CreateBackgroundHosts(this, service->extensions()); |
} |
break; |