| 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 2829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2840 | 2840 |
| 2841 {"use-suggestions-even-if-few", | 2841 {"use-suggestions-even-if-few", |
| 2842 flag_descriptions::kUseSuggestionsEvenIfFewFeatureName, | 2842 flag_descriptions::kUseSuggestionsEvenIfFewFeatureName, |
| 2843 flag_descriptions::kUseSuggestionsEvenIfFewFeatureDescription, kOsAll, | 2843 flag_descriptions::kUseSuggestionsEvenIfFewFeatureDescription, kOsAll, |
| 2844 FEATURE_VALUE_TYPE(suggestions::kUseSuggestionsEvenIfFewFeature)}, | 2844 FEATURE_VALUE_TYPE(suggestions::kUseSuggestionsEvenIfFewFeature)}, |
| 2845 | 2845 |
| 2846 {"enable-location-hard-reload", flag_descriptions::kLocationHardReloadName, | 2846 {"enable-location-hard-reload", flag_descriptions::kLocationHardReloadName, |
| 2847 flag_descriptions::kLocationHardReloadDescription, kOsAll, | 2847 flag_descriptions::kLocationHardReloadDescription, kOsAll, |
| 2848 FEATURE_VALUE_TYPE(features::kLocationHardReload)}, | 2848 FEATURE_VALUE_TYPE(features::kLocationHardReload)}, |
| 2849 | 2849 |
| 2850 {"capture-thumbnail-on-load-finished", |
| 2851 flag_descriptions::kCaptureThumbnailOnLoadFinishedName, |
| 2852 flag_descriptions::kCaptureThumbnailOnLoadFinishedDescription, kOsDesktop, |
| 2853 FEATURE_VALUE_TYPE(features::kCaptureThumbnailOnLoadFinished)}, |
| 2854 |
| 2850 // NOTE: Adding new command-line switches requires adding corresponding | 2855 // NOTE: Adding new command-line switches requires adding corresponding |
| 2851 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in | 2856 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in |
| 2852 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2857 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2853 }; | 2858 }; |
| 2854 | 2859 |
| 2855 class FlagsStateSingleton { | 2860 class FlagsStateSingleton { |
| 2856 public: | 2861 public: |
| 2857 FlagsStateSingleton() | 2862 FlagsStateSingleton() |
| 2858 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2863 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2859 ~FlagsStateSingleton() {} | 2864 ~FlagsStateSingleton() {} |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3065 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 3070 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 3066 | 3071 |
| 3067 const FeatureEntry* GetFeatureEntries(size_t* count) { | 3072 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 3068 *count = arraysize(kFeatureEntries); | 3073 *count = arraysize(kFeatureEntries); |
| 3069 return kFeatureEntries; | 3074 return kFeatureEntries; |
| 3070 } | 3075 } |
| 3071 | 3076 |
| 3072 } // namespace testing | 3077 } // namespace testing |
| 3073 | 3078 |
| 3074 } // namespace about_flags | 3079 } // namespace about_flags |
| OLD | NEW |