| 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 2820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2831 {"show-cert-link", flag_descriptions::kShowCertLinkOnPageInfoName, | 2831 {"show-cert-link", flag_descriptions::kShowCertLinkOnPageInfoName, |
| 2832 flag_descriptions::kShowCertLinkOnPageInfoDescription, kOsDesktop, | 2832 flag_descriptions::kShowCertLinkOnPageInfoDescription, kOsDesktop, |
| 2833 SINGLE_VALUE_TYPE(switches::kShowCertLink)}, | 2833 SINGLE_VALUE_TYPE(switches::kShowCertLink)}, |
| 2834 #endif | 2834 #endif |
| 2835 | 2835 |
| 2836 {"use-suggestions-even-if-few", | 2836 {"use-suggestions-even-if-few", |
| 2837 flag_descriptions::kUseSuggestionsEvenIfFewFeatureName, | 2837 flag_descriptions::kUseSuggestionsEvenIfFewFeatureName, |
| 2838 flag_descriptions::kUseSuggestionsEvenIfFewFeatureDescription, kOsAll, | 2838 flag_descriptions::kUseSuggestionsEvenIfFewFeatureDescription, kOsAll, |
| 2839 FEATURE_VALUE_TYPE(suggestions::kUseSuggestionsEvenIfFewFeature)}, | 2839 FEATURE_VALUE_TYPE(suggestions::kUseSuggestionsEvenIfFewFeature)}, |
| 2840 | 2840 |
| 2841 {"enable-location-hard-reload", flag_descriptions::kLocationHardReloadName, |
| 2842 flag_descriptions::kLocationHardReloadDescription, kOsAll, |
| 2843 FEATURE_VALUE_TYPE(features::kLocationHardReload)}, |
| 2844 |
| 2841 // NOTE: Adding new command-line switches requires adding corresponding | 2845 // NOTE: Adding new command-line switches requires adding corresponding |
| 2842 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2846 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in |
| 2843 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2847 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2844 }; | 2848 }; |
| 2845 | 2849 |
| 2846 class FlagsStateSingleton { | 2850 class FlagsStateSingleton { |
| 2847 public: | 2851 public: |
| 2848 FlagsStateSingleton() | 2852 FlagsStateSingleton() |
| 2849 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2853 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2850 ~FlagsStateSingleton() {} | 2854 ~FlagsStateSingleton() {} |
| 2851 | 2855 |
| 2852 static FlagsStateSingleton* GetInstance() { | 2856 static FlagsStateSingleton* GetInstance() { |
| 2853 return base::Singleton<FlagsStateSingleton>::get(); | 2857 return base::Singleton<FlagsStateSingleton>::get(); |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3056 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 3060 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 3057 | 3061 |
| 3058 const FeatureEntry* GetFeatureEntries(size_t* count) { | 3062 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 3059 *count = arraysize(kFeatureEntries); | 3063 *count = arraysize(kFeatureEntries); |
| 3060 return kFeatureEntries; | 3064 return kFeatureEntries; |
| 3061 } | 3065 } |
| 3062 | 3066 |
| 3063 } // namespace testing | 3067 } // namespace testing |
| 3064 | 3068 |
| 3065 } // namespace about_flags | 3069 } // namespace about_flags |
| OLD | NEW |