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 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2067 #endif // defined(OS_CHROMEOS) | 2067 #endif // defined(OS_CHROMEOS) |
2068 {"browser-task-scheduler", IDS_FLAGS_BROWSER_TASK_SCHEDULER_NAME, | 2068 {"browser-task-scheduler", IDS_FLAGS_BROWSER_TASK_SCHEDULER_NAME, |
2069 IDS_FLAGS_BROWSER_TASK_SCHEDULER_DESCRIPTION, kOsAll, | 2069 IDS_FLAGS_BROWSER_TASK_SCHEDULER_DESCRIPTION, kOsAll, |
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, |
| 2078 IDS_FLAGS_FEATURE_POLICY_DESCRIPTION, kOsAll, |
| 2079 FEATURE_VALUE_TYPE(features::kFeaturePolicy)}, |
2077 // NOTE: Adding new command-line switches requires adding corresponding | 2080 // NOTE: Adding new command-line switches requires adding corresponding |
2078 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2081 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2079 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2082 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2080 }; | 2083 }; |
2081 | 2084 |
2082 class FlagsStateSingleton { | 2085 class FlagsStateSingleton { |
2083 public: | 2086 public: |
2084 FlagsStateSingleton() | 2087 FlagsStateSingleton() |
2085 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2088 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
2086 ~FlagsStateSingleton() {} | 2089 ~FlagsStateSingleton() {} |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2257 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2260 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2258 | 2261 |
2259 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2262 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2260 *count = arraysize(kFeatureEntries); | 2263 *count = arraysize(kFeatureEntries); |
2261 return kFeatureEntries; | 2264 return kFeatureEntries; |
2262 } | 2265 } |
2263 | 2266 |
2264 } // namespace testing | 2267 } // namespace testing |
2265 | 2268 |
2266 } // namespace about_flags | 2269 } // namespace about_flags |
OLD | NEW |