| 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 2058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2069 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableBrowserTaskScheduler, | 2069 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableBrowserTaskScheduler, |
| 2070 switches::kDisableBrowserTaskScheduler)}, | 2070 switches::kDisableBrowserTaskScheduler)}, |
| 2071 #if defined(OS_ANDROID) | 2071 #if defined(OS_ANDROID) |
| 2072 {"enable-webapk", IDS_FLAGS_ENABLE_WEBAPK, | 2072 {"enable-webapk", IDS_FLAGS_ENABLE_WEBAPK, |
| 2073 IDS_FLAGS_ENABLE_WEBAPK_DESCRIPTION, kOsAndroid, | 2073 IDS_FLAGS_ENABLE_WEBAPK_DESCRIPTION, kOsAndroid, |
| 2074 SINGLE_VALUE_TYPE(switches::kEnableWebApk)}, | 2074 SINGLE_VALUE_TYPE(switches::kEnableWebApk)}, |
| 2075 #endif | 2075 #endif |
| 2076 {"enable-feature-policy", IDS_FLAGS_FEATURE_POLICY_NAME, | 2076 {"enable-feature-policy", IDS_FLAGS_FEATURE_POLICY_NAME, |
| 2077 IDS_FLAGS_FEATURE_POLICY_DESCRIPTION, kOsAll, | 2077 IDS_FLAGS_FEATURE_POLICY_DESCRIPTION, kOsAll, |
| 2078 FEATURE_VALUE_TYPE(features::kFeaturePolicy)}, | 2078 FEATURE_VALUE_TYPE(features::kFeaturePolicy)}, |
| 2079 {"enable-pointer-event-v1-spec-capturing-behavior", |
| 2080 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_V1_SPEC_CAPTURING_NAME, |
| 2081 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_V1_SPEC_CAPTURING_DESCRIPTION, kOsAll, |
| 2082 FEATURE_VALUE_TYPE(features::kPointerEventV1SpecCapturing)}, |
| 2079 // NOTE: Adding new command-line switches requires adding corresponding | 2083 // NOTE: Adding new command-line switches requires adding corresponding |
| 2080 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2084 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2081 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2085 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2082 }; | 2086 }; |
| 2083 | 2087 |
| 2084 class FlagsStateSingleton { | 2088 class FlagsStateSingleton { |
| 2085 public: | 2089 public: |
| 2086 FlagsStateSingleton() | 2090 FlagsStateSingleton() |
| 2087 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2091 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2088 ~FlagsStateSingleton() {} | 2092 ~FlagsStateSingleton() {} |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2259 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2263 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2260 | 2264 |
| 2261 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2265 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2262 *count = arraysize(kFeatureEntries); | 2266 *count = arraysize(kFeatureEntries); |
| 2263 return kFeatureEntries; | 2267 return kFeatureEntries; |
| 2264 } | 2268 } |
| 2265 | 2269 |
| 2266 } // namespace testing | 2270 } // namespace testing |
| 2267 | 2271 |
| 2268 } // namespace about_flags | 2272 } // namespace about_flags |
| OLD | NEW |