OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/extensions/feature_switch.h" | 5 #include "chrome/common/extensions/feature_switch.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
(...skipping 15 matching lines...) Expand all Loading... | |
26 switches::kExtensionsInActionBox, | 26 switches::kExtensionsInActionBox, |
27 FeatureSwitch::DEFAULT_DISABLED), | 27 FeatureSwitch::DEFAULT_DISABLED), |
28 script_badges( | 28 script_badges( |
29 switches::kScriptBadges, | 29 switches::kScriptBadges, |
30 FeatureSwitch::DEFAULT_DISABLED), | 30 FeatureSwitch::DEFAULT_DISABLED), |
31 script_bubble( | 31 script_bubble( |
32 switches::kScriptBubble, | 32 switches::kScriptBubble, |
33 FeatureSwitch::DEFAULT_DISABLED), | 33 FeatureSwitch::DEFAULT_DISABLED), |
34 sideload_wipeout( | 34 sideload_wipeout( |
35 switches::kSideloadWipeout, | 35 switches::kSideloadWipeout, |
36 FeatureSwitch::DEFAULT_DISABLED), | 36 FeatureSwitch::DEFAULT_ENABLED), |
Aaron Boodman
2012/10/23 15:20:20
Leave this disabled for now. I'd like to test it m
| |
37 prompt_for_external_extensions( | 37 prompt_for_external_extensions( |
38 switches::kPromptForExternalExtensions, | 38 switches::kPromptForExternalExtensions, |
39 FeatureSwitch::DEFAULT_ENABLED) | 39 FeatureSwitch::DEFAULT_ENABLED) |
40 { | 40 { |
41 // Disabling easy off-store installation is not yet implemented for Aura. Not | 41 // Disabling easy off-store installation is not yet implemented for Aura. Not |
42 // sure what the Aura equivalent for this UI is. | 42 // sure what the Aura equivalent for this UI is. |
43 #if defined(USE_AURA) | 43 #if defined(USE_AURA) |
44 easy_off_store_install.SetOverrideValue(FeatureSwitch::OVERRIDE_ENABLED); | 44 easy_off_store_install.SetOverrideValue(FeatureSwitch::OVERRIDE_ENABLED); |
45 #endif | 45 #endif |
46 | 46 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
153 | 153 |
154 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { | 154 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { |
155 override_value_ = override_value; | 155 override_value_ = override_value; |
156 } | 156 } |
157 | 157 |
158 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { | 158 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { |
159 return override_value_; | 159 return override_value_; |
160 } | 160 } |
161 | 161 |
162 } // namespace extensions | 162 } // namespace extensions |
OLD | NEW |