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