Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 2852433004: Add an experimental flag to change location.reload to take a hard-reload (Closed)
Patch Set: Merge branch 'master' into 2852433004 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698