| 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 2108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2119 {"video-fullscreen-orientation-lock", | 2119 {"video-fullscreen-orientation-lock", |
| 2120 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_NAME, | 2120 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_NAME, |
| 2121 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_DESCRIPTION, kOsAndroid, | 2121 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_DESCRIPTION, kOsAndroid, |
| 2122 FEATURE_VALUE_TYPE(media::kVideoFullscreenOrientationLock)}, | 2122 FEATURE_VALUE_TYPE(media::kVideoFullscreenOrientationLock)}, |
| 2123 #endif | 2123 #endif |
| 2124 {"enable-nostate-prefetch", IDS_FLAGS_NOSTATE_PREFETCH, | 2124 {"enable-nostate-prefetch", IDS_FLAGS_NOSTATE_PREFETCH, |
| 2125 IDS_FLAGS_NOSTATE_PREFETCH_DESCRIPTION, kOsAll, | 2125 IDS_FLAGS_NOSTATE_PREFETCH_DESCRIPTION, kOsAll, |
| 2126 FEATURE_WITH_VARIATIONS_VALUE_TYPE(prerender::kNoStatePrefetchFeature, | 2126 FEATURE_WITH_VARIATIONS_VALUE_TYPE(prerender::kNoStatePrefetchFeature, |
| 2127 kNoStatePrefetchFeatureVariations, | 2127 kNoStatePrefetchFeatureVariations, |
| 2128 "NoStatePrefetchValidation")}, | 2128 "NoStatePrefetchValidation")}, |
| 2129 #if defined(OS_CHROMEOS) |
| 2130 {"cros-comp-updates", IDS_FLAGS_CROS_COMP_UPDATES_NAME, |
| 2131 IDS_FLAGS_CROS_COMP_UPDATES_DESCRIPTION, kOsCrOS, |
| 2132 FEATURE_VALUE_TYPE(features::kCrosCompUpdates)}, |
| 2133 #endif |
| 2129 | 2134 |
| 2130 // NOTE: Adding new command-line switches requires adding corresponding | 2135 // NOTE: Adding new command-line switches requires adding corresponding |
| 2131 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2136 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2132 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2137 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2133 }; | 2138 }; |
| 2134 | 2139 |
| 2135 class FlagsStateSingleton { | 2140 class FlagsStateSingleton { |
| 2136 public: | 2141 public: |
| 2137 FlagsStateSingleton() | 2142 FlagsStateSingleton() |
| 2138 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2143 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2328 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2333 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2329 | 2334 |
| 2330 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2335 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2331 *count = arraysize(kFeatureEntries); | 2336 *count = arraysize(kFeatureEntries); |
| 2332 return kFeatureEntries; | 2337 return kFeatureEntries; |
| 2333 } | 2338 } |
| 2334 | 2339 |
| 2335 } // namespace testing | 2340 } // namespace testing |
| 2336 | 2341 |
| 2337 } // namespace about_flags | 2342 } // namespace about_flags |
| OLD | NEW |