| 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 13 matching lines...) Expand all Loading... |
| 24 FeatureSwitch::DEFAULT_DISABLED), | 24 FeatureSwitch::DEFAULT_DISABLED), |
| 25 extensions_in_action_box( | 25 extensions_in_action_box( |
| 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 // TODO(finnur): When enabling this, only enable for OS_WIN. |
| 34 sideload_wipeout( | 35 sideload_wipeout( |
| 35 switches::kSideloadWipeout, | 36 switches::kSideloadWipeout, |
| 36 FeatureSwitch::DEFAULT_DISABLED), | 37 FeatureSwitch::DEFAULT_DISABLED), |
| 37 prompt_for_external_extensions( | 38 prompt_for_external_extensions( |
| 38 switches::kPromptForExternalExtensions, | 39 switches::kPromptForExternalExtensions, |
| 39 FeatureSwitch::DEFAULT_ENABLED) | 40 FeatureSwitch::DEFAULT_ENABLED) |
| 40 { | 41 { |
| 41 // Disabling easy off-store installation is not yet implemented for Aura. Not | 42 // Disabling easy off-store installation is not yet implemented for Aura. Not |
| 42 // sure what the Aura equivalent for this UI is. | 43 // sure what the Aura equivalent for this UI is. |
| 43 #if defined(USE_AURA) | 44 #if defined(USE_AURA) |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 154 |
| 154 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { | 155 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { |
| 155 override_value_ = override_value; | 156 override_value_ = override_value; |
| 156 } | 157 } |
| 157 | 158 |
| 158 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { | 159 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { |
| 159 return override_value_; | 160 return override_value_; |
| 160 } | 161 } |
| 161 | 162 |
| 162 } // namespace extensions | 163 } // namespace extensions |
| OLD | NEW |