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

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

Issue 2865013002: Add an experimental flag to change location.reload to take a hard-reload (Closed)
Patch Set: 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 2703 matching lines...) Expand 10 before | Expand all | Expand 10 after
2714 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, 2714 FEATURE_VALUE_TYPE(features::kCopylessPaste)},
2715 #endif 2715 #endif
2716 2716
2717 #if defined(OS_ANDROID) 2717 #if defined(OS_ANDROID)
2718 {"enable-clipboard-provider", 2718 {"enable-clipboard-provider",
2719 flag_descriptions::kEnableOmniboxClipboardProviderName, 2719 flag_descriptions::kEnableOmniboxClipboardProviderName,
2720 flag_descriptions::kEnableOmniboxClipboardProviderDescription, kOsAndroid, 2720 flag_descriptions::kEnableOmniboxClipboardProviderDescription, kOsAndroid,
2721 FEATURE_VALUE_TYPE(omnibox::kEnableClipboardProvider)}, 2721 FEATURE_VALUE_TYPE(omnibox::kEnableClipboardProvider)},
2722 #endif 2722 #endif
2723 2723
2724 {"enable-location-hard-reload", flag_descriptions::kLocationHardReloadName,
2725 flag_descriptions::kLocationHardReloadDescription, kOsAll,
2726 FEATURE_VALUE_TYPE(features::kLocationHardReload)},
2727
2724 // NOTE: Adding new command-line switches requires adding corresponding 2728 // NOTE: Adding new command-line switches requires adding corresponding
2725 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2729 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in
2726 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2730 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test.
2727 }; 2731 };
2728 2732
2729 class FlagsStateSingleton { 2733 class FlagsStateSingleton {
2730 public: 2734 public:
2731 FlagsStateSingleton() 2735 FlagsStateSingleton()
2732 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2736 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2733 ~FlagsStateSingleton() {} 2737 ~FlagsStateSingleton() {}
2734 2738
2735 static FlagsStateSingleton* GetInstance() { 2739 static FlagsStateSingleton* GetInstance() {
2736 return base::Singleton<FlagsStateSingleton>::get(); 2740 return base::Singleton<FlagsStateSingleton>::get();
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
2930 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2934 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2931 2935
2932 const FeatureEntry* GetFeatureEntries(size_t* count) { 2936 const FeatureEntry* GetFeatureEntries(size_t* count) {
2933 *count = arraysize(kFeatureEntries); 2937 *count = arraysize(kFeatureEntries);
2934 return kFeatureEntries; 2938 return kFeatureEntries;
2935 } 2939 }
2936 2940
2937 } // namespace testing 2941 } // namespace testing
2938 2942
2939 } // namespace about_flags 2943 } // 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