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

Side by Side Diff: extensions/common/features/feature_util.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "extensions/common/features/feature_util.h"
6
7 namespace extensions {
8 namespace feature_util {
9
10 namespace {
11
12 bool g_extension_api_enabled_in_extension_service_workers = false;
13
14 } // namespace
15
16 bool ExtensionAPIEnabledInExtensionServiceWorkers() {
17 return g_extension_api_enabled_in_extension_service_workers;
18 }
19
20 void SetExtensionAPIEnabledInExtensionServiceWorkers(bool enabled) {
21 g_extension_api_enabled_in_extension_service_workers = enabled;
22 }
23
24 } // namespace feature_util
25 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698