| 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,
|
|
|