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_), |