| 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/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 switches::kEasyOffStoreExtensionInstall, | 24 switches::kEasyOffStoreExtensionInstall, |
| 25 FeatureSwitch::DEFAULT_DISABLED), | 25 FeatureSwitch::DEFAULT_DISABLED), |
| 26 extensions_in_action_box( | 26 extensions_in_action_box( |
| 27 switches::kExtensionsInActionBox, | 27 switches::kExtensionsInActionBox, |
| 28 FeatureSwitch::DEFAULT_DISABLED), | 28 FeatureSwitch::DEFAULT_DISABLED), |
| 29 script_badges( | 29 script_badges( |
| 30 switches::kScriptBadges, | 30 switches::kScriptBadges, |
| 31 FeatureSwitch::DEFAULT_DISABLED), | 31 FeatureSwitch::DEFAULT_DISABLED), |
| 32 script_bubble( | 32 script_bubble( |
| 33 switches::kScriptBubble, | 33 switches::kScriptBubble, |
| 34 #if !defined(OS_MACOSX) |
| 35 FeatureSwitch::DEFAULT_ENABLED), |
| 36 #else |
| 34 FeatureSwitch::DEFAULT_DISABLED), | 37 FeatureSwitch::DEFAULT_DISABLED), |
| 38 #endif |
| 35 sideload_wipeout( | 39 sideload_wipeout( |
| 36 switches::kSideloadWipeout, | 40 switches::kSideloadWipeout, |
| 37 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
| 38 FeatureSwitch::DEFAULT_ENABLED), | 42 FeatureSwitch::DEFAULT_ENABLED), |
| 39 #else | 43 #else |
| 40 FeatureSwitch::DEFAULT_DISABLED), | 44 FeatureSwitch::DEFAULT_DISABLED), |
| 41 #endif | 45 #endif |
| 42 prompt_for_external_extensions( | 46 prompt_for_external_extensions( |
| 43 switches::kPromptForExternalExtensions, | 47 switches::kPromptForExternalExtensions, |
| 44 #if defined(OS_WIN) | 48 #if defined(OS_WIN) |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 167 |
| 164 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { | 168 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { |
| 165 override_value_ = override_value; | 169 override_value_ = override_value; |
| 166 } | 170 } |
| 167 | 171 |
| 168 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { | 172 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { |
| 169 return override_value_; | 173 return override_value_; |
| 170 } | 174 } |
| 171 | 175 |
| 172 } // namespace extensions | 176 } // namespace extensions |
| OLD | NEW |