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

Unified Diff: apps/shell/browser/shell_extension_system.cc

Issue 182253010: Register a Service Worker when an extension is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to r261176 Created 6 years, 9 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 | « no previous file | chrome/browser/extensions/DEPS » ('j') | extensions/browser/extension_host.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/browser/shell_extension_system.cc
diff --git a/apps/shell/browser/shell_extension_system.cc b/apps/shell/browser/shell_extension_system.cc
index 3eb11520d90c7a4ea5c1845fe174804a90d0c2e4..d8d2176ebf0b1fed9b0874a78fc630b75ef23d26 100644
--- a/apps/shell/browser/shell_extension_system.cc
+++ b/apps/shell/browser/shell_extension_system.cc
@@ -63,6 +63,9 @@ bool ShellExtensionSystem::LoadAndLaunchApp(const base::FilePath& app_dir) {
RegisterExtensionWithRequestContexts(extension);
+ if (BackgroundInfo::HasServiceWorker(extension))
+ ServiceWorkerManager::Get(browser_context_)->RegisterExtension(extension);
+
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_LOADED,
content::Source<BrowserContext>(browser_context_),
« no previous file with comments | « no previous file | chrome/browser/extensions/DEPS » ('j') | extensions/browser/extension_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698