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 20 matching lines...) Expand all Loading... |
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) | 34 #if !defined(OS_MACOSX) |
35 FeatureSwitch::DEFAULT_ENABLED), | 35 FeatureSwitch::DEFAULT_ENABLED), |
36 #else | 36 #else |
37 FeatureSwitch::DEFAULT_DISABLED), | 37 FeatureSwitch::DEFAULT_DISABLED), |
38 #endif | 38 #endif |
39 sideload_wipeout( | 39 sideload_wipeout( |
40 switches::kSideloadWipeout, | 40 switches::kSideloadWipeout, |
41 #if defined(OS_WIN) | |
42 FeatureSwitch::DEFAULT_ENABLED), | |
43 #else | |
44 FeatureSwitch::DEFAULT_DISABLED), | 41 FeatureSwitch::DEFAULT_DISABLED), |
45 #endif | |
46 prompt_for_external_extensions( | 42 prompt_for_external_extensions( |
47 switches::kPromptForExternalExtensions, | 43 switches::kPromptForExternalExtensions, |
48 #if defined(OS_WIN) | |
49 FeatureSwitch::DEFAULT_ENABLED), | |
50 #else | |
51 FeatureSwitch::DEFAULT_DISABLED), | 44 FeatureSwitch::DEFAULT_DISABLED), |
52 #endif | |
53 tab_capture( | 45 tab_capture( |
54 switches::kTabCapture, | 46 switches::kTabCapture, |
55 FeatureSwitch::DEFAULT_ENABLED) | 47 FeatureSwitch::DEFAULT_ENABLED) |
56 { | 48 { |
57 if (!action_box.IsEnabled()){ | 49 if (!action_box.IsEnabled()){ |
58 extensions_in_action_box.SetOverrideValue( | 50 extensions_in_action_box.SetOverrideValue( |
59 FeatureSwitch::OVERRIDE_DISABLED); | 51 FeatureSwitch::OVERRIDE_DISABLED); |
60 } | 52 } |
61 } | 53 } |
62 | 54 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 159 |
168 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { | 160 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { |
169 override_value_ = override_value; | 161 override_value_ = override_value; |
170 } | 162 } |
171 | 163 |
172 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { | 164 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { |
173 return override_value_; | 165 return override_value_; |
174 } | 166 } |
175 | 167 |
176 } // namespace extensions | 168 } // namespace extensions |
OLD | NEW |