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

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

Issue 136453005: app_shell: Make renderer run background page JavaScript (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup (load_background_page) Created 6 years, 11 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
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 {
« chrome/browser/extensions/extension_host.cc ('K') | « chrome/browser/extensions/extension_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698