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

Unified Diff: extensions/common/feature_switch.cc

Issue 512543002: Model <webview> and <appview> script injection after <extensionoptions> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add permission dependency to whitelist Created 6 years, 4 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 | « extensions/common/feature_switch.h ('k') | extensions/common/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/feature_switch.cc
diff --git a/extensions/common/feature_switch.cc b/extensions/common/feature_switch.cc
index a68ecd71b3d9389faab76e5a8fc2beaa9ee82254..b057863ce9dc74f574843ee37e942352842bf33e 100644
--- a/extensions/common/feature_switch.cc
+++ b/extensions/common/feature_switch.cc
@@ -43,7 +43,9 @@ class CommonSwitches {
FeatureSwitch::DEFAULT_DISABLED),
embedded_extension_options(
switches::kEmbeddedExtensionOptions,
- FeatureSwitch::DEFAULT_DISABLED) {}
+ FeatureSwitch::DEFAULT_DISABLED),
+ app_view(switches::kAppView,
+ FeatureSwitch::DEFAULT_DISABLED) {}
// Enables extensions to be easily installed from sites other than the web
// store.
@@ -60,6 +62,7 @@ class CommonSwitches {
FeatureSwitch extension_action_redesign;
FeatureSwitch scripts_require_action;
FeatureSwitch embedded_extension_options;
+ FeatureSwitch app_view;
};
base::LazyInstance<CommonSwitches> g_common_switches =
@@ -91,6 +94,9 @@ FeatureSwitch* FeatureSwitch::scripts_require_action() {
FeatureSwitch* FeatureSwitch::embedded_extension_options() {
return &g_common_switches.Get().embedded_extension_options;
}
+FeatureSwitch* FeatureSwitch::app_view() {
+ return &g_common_switches.Get().app_view;
+}
FeatureSwitch::ScopedOverride::ScopedOverride(FeatureSwitch* feature,
bool override_value)
« no previous file with comments | « extensions/common/feature_switch.h ('k') | extensions/common/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698