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

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

Issue 1880933002: Begin to enable extension APIs in Extension Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments -> round 1 Created 4 years, 8 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/chrome_notification_observer.cc
diff --git a/chrome/browser/extensions/chrome_notification_observer.cc b/chrome/browser/extensions/chrome_notification_observer.cc
index 5b53a0ef00bedb804f4fcdb710d79d98008463b6..9b68ea313bc93311738433a057b98de936a85d76 100644
--- a/chrome/browser/extensions/chrome_notification_observer.cc
+++ b/chrome/browser/extensions/chrome_notification_observer.cc
@@ -9,6 +9,7 @@
#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_process_host.h"
#include "extensions/common/extension_messages.h"
+#include "extensions/common/features/feature_util.h"
namespace extensions {
@@ -26,6 +27,9 @@ void ChromeNotificationObserver::OnRendererProcessCreated(
// to all renderers, as the non-extension renderers may have content scripts.
process->Send(
new ExtensionMsg_SetChannel(static_cast<int>(GetCurrentChannel())));
+ process->Send(
+ new ExtensionMsg_SetExtensionAPIEnabledInExtensionServiceWorkers(
+ feature_util::ExtensionAPIEnabledInExtensionServiceWorkers()));
}
void ChromeNotificationObserver::Observe(int type,

Powered by Google App Engine
This is Rietveld 408576698