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

Unified Diff: extensions/common/feature_switch.cc

Issue 376033002: Adding MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-zork-patch2
Patch Set: Address comment from kenrb@ Created 6 years, 3 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 b057863ce9dc74f574843ee37e942352842bf33e..4ff713755ff8b9bc46221c4127122f75868621f0 100644
--- a/extensions/common/feature_switch.cc
+++ b/extensions/common/feature_switch.cc
@@ -45,7 +45,9 @@ class CommonSwitches {
switches::kEmbeddedExtensionOptions,
FeatureSwitch::DEFAULT_DISABLED),
app_view(switches::kAppView,
- FeatureSwitch::DEFAULT_DISABLED) {}
+ FeatureSwitch::DEFAULT_DISABLED),
+ mime_handler_view(switches::kMimeHandlerView,
+ FeatureSwitch::DEFAULT_DISABLED) {}
// Enables extensions to be easily installed from sites other than the web
// store.
@@ -63,6 +65,7 @@ class CommonSwitches {
FeatureSwitch scripts_require_action;
FeatureSwitch embedded_extension_options;
FeatureSwitch app_view;
+ FeatureSwitch mime_handler_view;
};
base::LazyInstance<CommonSwitches> g_common_switches =
@@ -97,6 +100,9 @@ FeatureSwitch* FeatureSwitch::embedded_extension_options() {
FeatureSwitch* FeatureSwitch::app_view() {
return &g_common_switches.Get().app_view;
}
+FeatureSwitch* FeatureSwitch::mime_handler_view() {
+ return &g_common_switches.Get().mime_handler_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