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

Unified Diff: chrome/common/extensions/feature_switch.cc

Issue 11150002: New post-sideload UI: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: !!! Created 8 years, 2 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 | « chrome/common/extensions/feature_switch.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/feature_switch.cc
diff --git a/chrome/common/extensions/feature_switch.cc b/chrome/common/extensions/feature_switch.cc
index 0bf53f38e8b126cc36495319adf9ae41be02a6d5..1bc70ae51254d5291c085554d2a0c729eed71095 100644
--- a/chrome/common/extensions/feature_switch.cc
+++ b/chrome/common/extensions/feature_switch.cc
@@ -30,7 +30,11 @@ class CommonSwitches {
FeatureSwitch::DEFAULT_DISABLED),
script_bubble(
switches::kScriptBubble,
- FeatureSwitch::DEFAULT_DISABLED) {
+ FeatureSwitch::DEFAULT_DISABLED),
+ prompt_for_external_extensions(
+ switches::kPromptForExternalExtensions,
+ FeatureSwitch::DEFAULT_ENABLED)
+ {
// Disabling easy off-store installation is not yet implemented for Aura. Not
// sure what the Aura equivalent for this UI is.
#if defined(USE_AURA)
@@ -48,6 +52,7 @@ class CommonSwitches {
FeatureSwitch extensions_in_action_box;
FeatureSwitch script_badges;
FeatureSwitch script_bubble;
+ FeatureSwitch prompt_for_external_extensions;
};
base::LazyInstance<CommonSwitches> g_common_switches =
@@ -71,6 +76,9 @@ FeatureSwitch* FeatureSwitch::script_badges() {
FeatureSwitch* FeatureSwitch::script_bubble() {
return &g_common_switches.Get().script_bubble;
}
+FeatureSwitch* FeatureSwitch::prompt_for_external_extensions() {
+ return &g_common_switches.Get().prompt_for_external_extensions;
+}
FeatureSwitch::ScopedOverride::ScopedOverride(FeatureSwitch* feature,
« no previous file with comments | « chrome/common/extensions/feature_switch.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698