| 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/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
| 6 | 6 |
| 7 #include <iterator> | 7 #include <iterator> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2044 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableBrowserTaskScheduler, | 2044 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableBrowserTaskScheduler, |
| 2045 switches::kDisableBrowserTaskScheduler)}, | 2045 switches::kDisableBrowserTaskScheduler)}, |
| 2046 #if defined(OS_ANDROID) | 2046 #if defined(OS_ANDROID) |
| 2047 {"enable-webapk", IDS_FLAGS_ENABLE_WEBAPK, | 2047 {"enable-webapk", IDS_FLAGS_ENABLE_WEBAPK, |
| 2048 IDS_FLAGS_ENABLE_WEBAPK_DESCRIPTION, kOsAndroid, | 2048 IDS_FLAGS_ENABLE_WEBAPK_DESCRIPTION, kOsAndroid, |
| 2049 SINGLE_VALUE_TYPE(switches::kEnableWebApk)}, | 2049 SINGLE_VALUE_TYPE(switches::kEnableWebApk)}, |
| 2050 #endif | 2050 #endif |
| 2051 {"enable-feature-policy", IDS_FLAGS_FEATURE_POLICY_NAME, | 2051 {"enable-feature-policy", IDS_FLAGS_FEATURE_POLICY_NAME, |
| 2052 IDS_FLAGS_FEATURE_POLICY_DESCRIPTION, kOsAll, | 2052 IDS_FLAGS_FEATURE_POLICY_DESCRIPTION, kOsAll, |
| 2053 FEATURE_VALUE_TYPE(features::kFeaturePolicy)}, | 2053 FEATURE_VALUE_TYPE(features::kFeaturePolicy)}, |
| 2054 {"enable-gamepad-extensions", IDS_FLAGS_GAMEPAD_EXTENSIONS_NAME, |
| 2055 IDS_FLAGS_GAMEPAD_EXTENSIONS_DESCRIPTION, kOsAll, |
| 2056 FEATURE_VALUE_TYPE(features::kGamepadExtensions)}, |
| 2054 // NOTE: Adding new command-line switches requires adding corresponding | 2057 // NOTE: Adding new command-line switches requires adding corresponding |
| 2055 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2058 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2056 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2059 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2057 }; | 2060 }; |
| 2058 | 2061 |
| 2059 class FlagsStateSingleton { | 2062 class FlagsStateSingleton { |
| 2060 public: | 2063 public: |
| 2061 FlagsStateSingleton() | 2064 FlagsStateSingleton() |
| 2062 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2065 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2063 ~FlagsStateSingleton() {} | 2066 ~FlagsStateSingleton() {} |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2225 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2228 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2226 | 2229 |
| 2227 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2230 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2228 *count = arraysize(kFeatureEntries); | 2231 *count = arraysize(kFeatureEntries); |
| 2229 return kFeatureEntries; | 2232 return kFeatureEntries; |
| 2230 } | 2233 } |
| 2231 | 2234 |
| 2232 } // namespace testing | 2235 } // namespace testing |
| 2233 | 2236 |
| 2234 } // namespace about_flags | 2237 } // namespace about_flags |
| OLD | NEW |