| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "extensions/common/feature_switch.h" | 5 #include "extensions/common/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/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 extension_action_redesign_override(switches::kExtensionActionRedesign, | 48 extension_action_redesign_override(switches::kExtensionActionRedesign, |
| 49 FeatureSwitch::DEFAULT_ENABLED), | 49 FeatureSwitch::DEFAULT_ENABLED), |
| 50 scripts_require_action(switches::kScriptsRequireAction, | 50 scripts_require_action(switches::kScriptsRequireAction, |
| 51 FeatureSwitch::DEFAULT_DISABLED), | 51 FeatureSwitch::DEFAULT_DISABLED), |
| 52 embedded_extension_options(switches::kEmbeddedExtensionOptions, | 52 embedded_extension_options(switches::kEmbeddedExtensionOptions, |
| 53 FeatureSwitch::DEFAULT_DISABLED), | 53 FeatureSwitch::DEFAULT_DISABLED), |
| 54 trace_app_source(switches::kTraceAppSource, | 54 trace_app_source(switches::kTraceAppSource, |
| 55 FeatureSwitch::DEFAULT_ENABLED), | 55 FeatureSwitch::DEFAULT_ENABLED), |
| 56 media_router(kMediaRouterFlag, | 56 media_router(kMediaRouterFlag, |
| 57 kEnableMediaRouterExperiment, | 57 kEnableMediaRouterExperiment, |
| 58 FeatureSwitch::DEFAULT_DISABLED) { | 58 FeatureSwitch::DEFAULT_ENABLED) { |
| 59 } | 59 } |
| 60 | 60 |
| 61 // Enables extensions to be easily installed from sites other than the web | 61 // Enables extensions to be easily installed from sites other than the web |
| 62 // store. | 62 // store. |
| 63 FeatureSwitch easy_off_store_install; | 63 FeatureSwitch easy_off_store_install; |
| 64 | 64 |
| 65 FeatureSwitch force_dev_mode_highlighting; | 65 FeatureSwitch force_dev_mode_highlighting; |
| 66 | 66 |
| 67 // Should we prompt the user before allowing external extensions to install? | 67 // Should we prompt the user before allowing external extensions to install? |
| 68 // Default is yes. | 68 // Default is yes. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { | 216 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { |
| 217 override_value_ = override_value; | 217 override_value_ = override_value; |
| 218 } | 218 } |
| 219 | 219 |
| 220 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { | 220 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { |
| 221 return override_value_; | 221 return override_value_; |
| 222 } | 222 } |
| 223 | 223 |
| 224 } // namespace extensions | 224 } // namespace extensions |
| OLD | NEW |