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 2048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2059 ENABLE_DISABLE_VALUE_TYPE(chromeos::switches::kEnableFilesQuickView, | 2059 ENABLE_DISABLE_VALUE_TYPE(chromeos::switches::kEnableFilesQuickView, |
2060 chromeos::switches::kDisableFilesQuickView)}, | 2060 chromeos::switches::kDisableFilesQuickView)}, |
2061 {"quick-unlock-pin", IDS_FLAGS_QUICK_UNLOCK_PIN, | 2061 {"quick-unlock-pin", IDS_FLAGS_QUICK_UNLOCK_PIN, |
2062 IDS_FLAGS_QUICK_UNLOCK_PIN_DESCRIPTION, kOsCrOS, | 2062 IDS_FLAGS_QUICK_UNLOCK_PIN_DESCRIPTION, kOsCrOS, |
2063 FEATURE_VALUE_TYPE(features::kQuickUnlockPin)}, | 2063 FEATURE_VALUE_TYPE(features::kQuickUnlockPin)}, |
2064 #endif // defined(OS_CHROMEOS) | 2064 #endif // defined(OS_CHROMEOS) |
2065 {"browser-task-scheduler", IDS_FLAGS_BROWSER_TASK_SCHEDULER_NAME, | 2065 {"browser-task-scheduler", IDS_FLAGS_BROWSER_TASK_SCHEDULER_NAME, |
2066 IDS_FLAGS_BROWSER_TASK_SCHEDULER_DESCRIPTION, kOsAll, | 2066 IDS_FLAGS_BROWSER_TASK_SCHEDULER_DESCRIPTION, kOsAll, |
2067 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableBrowserTaskScheduler, | 2067 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableBrowserTaskScheduler, |
2068 switches::kDisableBrowserTaskScheduler)}, | 2068 switches::kDisableBrowserTaskScheduler)}, |
| 2069 #if defined(OS_ANDROID) |
| 2070 {"enable-webapk", IDS_FLAGS_ENABLE_WEBAPK, |
| 2071 IDS_FLAGS_ENABLE_WEBAPK_DESCRIPTION, kOsAndroid, |
| 2072 SINGLE_VALUE_TYPE(switches::kEnableWebApk)}, |
| 2073 #endif |
2069 // NOTE: Adding new command-line switches requires adding corresponding | 2074 // NOTE: Adding new command-line switches requires adding corresponding |
2070 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2075 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2071 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2076 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2072 }; | 2077 }; |
2073 | 2078 |
2074 class FlagsStateSingleton { | 2079 class FlagsStateSingleton { |
2075 public: | 2080 public: |
2076 FlagsStateSingleton() | 2081 FlagsStateSingleton() |
2077 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2082 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
2078 ~FlagsStateSingleton() {} | 2083 ~FlagsStateSingleton() {} |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2249 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2254 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2250 | 2255 |
2251 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2256 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2252 *count = arraysize(kFeatureEntries); | 2257 *count = arraysize(kFeatureEntries); |
2253 return kFeatureEntries; | 2258 return kFeatureEntries; |
2254 } | 2259 } |
2255 | 2260 |
2256 } // namespace testing | 2261 } // namespace testing |
2257 | 2262 |
2258 } // namespace about_flags | 2263 } // namespace about_flags |
OLD | NEW |