| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
| 46 FeatureSwitch::DEFAULT_ENABLED), | 46 FeatureSwitch::DEFAULT_ENABLED), |
| 47 #else | 47 #else |
| 48 FeatureSwitch::DEFAULT_DISABLED), | 48 FeatureSwitch::DEFAULT_DISABLED), |
| 49 #endif | 49 #endif |
| 50 error_console(switches::kErrorConsole, FeatureSwitch::DEFAULT_DISABLED), | 50 error_console(switches::kErrorConsole, FeatureSwitch::DEFAULT_DISABLED), |
| 51 enable_override_bookmarks_ui(switches::kEnableOverrideBookmarksUI, | 51 enable_override_bookmarks_ui(switches::kEnableOverrideBookmarksUI, |
| 52 FeatureSwitch::DEFAULT_DISABLED), | 52 FeatureSwitch::DEFAULT_DISABLED), |
| 53 extension_action_redesign(switches::kExtensionActionRedesign, | 53 extension_action_redesign(switches::kExtensionActionRedesign, |
| 54 kExtensionActionRedesignExperiment, | 54 kExtensionActionRedesignExperiment, |
| 55 FeatureSwitch::DEFAULT_DISABLED), | 55 FeatureSwitch::DEFAULT_ENABLED), |
| 56 extension_action_redesign_override(switches::kExtensionActionRedesign, | 56 extension_action_redesign_override(switches::kExtensionActionRedesign, |
| 57 FeatureSwitch::DEFAULT_ENABLED), | 57 FeatureSwitch::DEFAULT_ENABLED), |
| 58 scripts_require_action(switches::kScriptsRequireAction, | 58 scripts_require_action(switches::kScriptsRequireAction, |
| 59 FeatureSwitch::DEFAULT_DISABLED), | 59 FeatureSwitch::DEFAULT_DISABLED), |
| 60 embedded_extension_options(switches::kEmbeddedExtensionOptions, | 60 embedded_extension_options(switches::kEmbeddedExtensionOptions, |
| 61 FeatureSwitch::DEFAULT_DISABLED), | 61 FeatureSwitch::DEFAULT_DISABLED), |
| 62 trace_app_source(switches::kTraceAppSource, | 62 trace_app_source(switches::kTraceAppSource, |
| 63 FeatureSwitch::DEFAULT_ENABLED), | 63 FeatureSwitch::DEFAULT_ENABLED), |
| 64 media_router(kMediaRouterFlag, | 64 media_router(kMediaRouterFlag, |
| 65 std::vector<std::string>( | 65 std::vector<std::string>( |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 264 |
| 265 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { | 265 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { |
| 266 override_value_ = override_value; | 266 override_value_ = override_value; |
| 267 } | 267 } |
| 268 | 268 |
| 269 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { | 269 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { |
| 270 return override_value_; | 270 return override_value_; |
| 271 } | 271 } |
| 272 | 272 |
| 273 } // namespace extensions | 273 } // namespace extensions |
| OLD | NEW |