Index: extensions/common/feature_switch.cc |
diff --git a/extensions/common/feature_switch.cc b/extensions/common/feature_switch.cc |
index 91ebdda9a05f73b301ac1de9f7ee445781950ee5..33394c12206ebb438b4e47231c9a04b23e871d2b 100644 |
--- a/extensions/common/feature_switch.cc |
+++ b/extensions/common/feature_switch.cc |
@@ -42,7 +42,9 @@ class CommonSwitches { |
FeatureSwitch::DEFAULT_DISABLED), |
enable_override_bookmarks_ui( |
switches::kEnableOverrideBookmarksUI, |
- FeatureSwitch::DEFAULT_DISABLED) {} |
+ FeatureSwitch::DEFAULT_DISABLED), |
+ active_script_enforcement(switches::kActiveScriptEnforcement, |
+ FeatureSwitch::DEFAULT_DISABLED) {} |
// Enables extensions to be easily installed from sites other than the web |
// store. |
@@ -57,6 +59,7 @@ class CommonSwitches { |
FeatureSwitch error_console; |
FeatureSwitch enable_override_bookmarks_ui; |
+ FeatureSwitch active_script_enforcement; |
}; |
base::LazyInstance<CommonSwitches> g_common_switches = |
@@ -83,6 +86,10 @@ FeatureSwitch* FeatureSwitch::enable_override_bookmarks_ui() { |
return &g_common_switches.Get().enable_override_bookmarks_ui; |
} |
+FeatureSwitch* FeatureSwitch::active_script_enforcement() { |
+ return &g_common_switches.Get().active_script_enforcement; |
+} |
+ |
FeatureSwitch::ScopedOverride::ScopedOverride(FeatureSwitch* feature, |
bool override_value) |
: feature_(feature), |