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

Unified Diff: extensions/common/feature_switch.cc

Issue 114153003: Add an extension bubble explaining which extensions are in dev mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 7 years 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: extensions/common/feature_switch.cc
diff --git a/extensions/common/feature_switch.cc b/extensions/common/feature_switch.cc
index cc3d9a3bdc63f560fa3b700058a17fc990d9c185..d3fe485eb587c26169239fcded62e36627ff5f5d 100644
--- a/extensions/common/feature_switch.cc
+++ b/extensions/common/feature_switch.cc
@@ -20,6 +20,9 @@ class CommonSwitches {
: easy_off_store_install(
switches::kEasyOffStoreExtensionInstall,
FeatureSwitch::DEFAULT_DISABLED),
+ force_dev_mode_highlighting(
+ switches::kForceDevModeHighlighting,
+ FeatureSwitch::DEFAULT_DISABLED),
global_commands(
switches::kGlobalCommands,
FeatureSwitch::DEFAULT_DISABLED),
@@ -44,6 +47,7 @@ class CommonSwitches {
FeatureSwitch::DEFAULT_DISABLED) {}
FeatureSwitch easy_off_store_install;
+ FeatureSwitch force_dev_mode_highlighting;
FeatureSwitch global_commands;
FeatureSwitch script_badges;
FeatureSwitch script_bubble;
@@ -57,6 +61,9 @@ base::LazyInstance<CommonSwitches> g_common_switches =
} // namespace
+FeatureSwitch* FeatureSwitch::force_dev_mode_highlighting() {
+ return &g_common_switches.Get().force_dev_mode_highlighting;
+}
FeatureSwitch* FeatureSwitch::easy_off_store_install() {
return &g_common_switches.Get().easy_off_store_install;
}

Powered by Google App Engine
This is Rietveld 408576698