Index: chrome/browser/extensions/extension_service.cc |
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
index eb2342a4cf785e9dff4c644d8d50359ef09f101a..d215aa68ea54811777a6ca1f3b40f5b83e57be51 100644 |
--- a/chrome/browser/extensions/extension_service.cc |
+++ b/chrome/browser/extensions/extension_service.cc |
@@ -2500,6 +2500,8 @@ void ExtensionService::Observe(int type, |
break; |
} |
case content::NOTIFICATION_RENDERER_PROCESS_CREATED: { |
+ // TODO(jamescook): Extract this block of code to src/extensions so it |
+ // can be shared with app_shell. |
content::RenderProcessHost* process = |
content::Source<content::RenderProcessHost>(source).ptr(); |
Profile* host_profile = |
@@ -2621,10 +2623,6 @@ bool ExtensionService::IsBackgroundPageReady(const Extension* extension) const { |
void ExtensionService::SetBackgroundPageReady(const Extension* extension) { |
DCHECK(extensions::BackgroundInfo::HasBackgroundPage(extension)); |
extension_runtime_data_[extension->id()].background_page_ready = true; |
- content::NotificationService::current()->Notify( |
- chrome::NOTIFICATION_EXTENSION_BACKGROUND_PAGE_READY, |
- content::Source<const Extension>(extension), |
- content::NotificationService::NoDetails()); |
} |
bool ExtensionService::IsBeingUpgraded(const Extension* extension) const { |