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

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

Issue 2877483002: Add about:flags entries for UseGoogleLocalNtp and OneGoogleBarOnLocalNtp (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') | chrome/browser/flag_descriptions.cc » ('J')
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 2864 matching lines...) Expand 10 before | Expand all | Expand 10 after
2875 2875
2876 {"enable-location-hard-reload", flag_descriptions::kLocationHardReloadName, 2876 {"enable-location-hard-reload", flag_descriptions::kLocationHardReloadName,
2877 flag_descriptions::kLocationHardReloadDescription, kOsAll, 2877 flag_descriptions::kLocationHardReloadDescription, kOsAll,
2878 FEATURE_VALUE_TYPE(features::kLocationHardReload)}, 2878 FEATURE_VALUE_TYPE(features::kLocationHardReload)},
2879 2879
2880 {"capture-thumbnail-on-load-finished", 2880 {"capture-thumbnail-on-load-finished",
2881 flag_descriptions::kCaptureThumbnailOnLoadFinishedName, 2881 flag_descriptions::kCaptureThumbnailOnLoadFinishedName,
2882 flag_descriptions::kCaptureThumbnailOnLoadFinishedDescription, kOsDesktop, 2882 flag_descriptions::kCaptureThumbnailOnLoadFinishedDescription, kOsDesktop,
2883 FEATURE_VALUE_TYPE(features::kCaptureThumbnailOnLoadFinished)}, 2883 FEATURE_VALUE_TYPE(features::kCaptureThumbnailOnLoadFinished)},
2884 2884
2885 {"use-google-local-ntp", flag_descriptions::kUseGoogleLocalNtpName,
2886 flag_descriptions::kUseGoogleLocalNtpDescription, kOsDesktop,
2887 FEATURE_VALUE_TYPE(features::kUseGoogleLocalNtp)},
2888
2889 {"one-google-bar-on-local-ntp",
2890 flag_descriptions::kOneGoogleBarOnLocalNtpName,
2891 flag_descriptions::kOneGoogleBarOnLocalNtpDescription, kOsDesktop,
2892 FEATURE_VALUE_TYPE(features::kOneGoogleBarOnLocalNtp)},
2893
2885 // NOTE: Adding new command-line switches requires adding corresponding 2894 // NOTE: Adding new command-line switches requires adding corresponding
2886 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in 2895 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in
2887 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test. 2896 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test.
2888 }; 2897 };
2889 2898
2890 class FlagsStateSingleton { 2899 class FlagsStateSingleton {
2891 public: 2900 public:
2892 FlagsStateSingleton() 2901 FlagsStateSingleton()
2893 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2902 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2894 ~FlagsStateSingleton() {} 2903 ~FlagsStateSingleton() {}
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
3100 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 3109 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
3101 3110
3102 const FeatureEntry* GetFeatureEntries(size_t* count) { 3111 const FeatureEntry* GetFeatureEntries(size_t* count) {
3103 *count = arraysize(kFeatureEntries); 3112 *count = arraysize(kFeatureEntries);
3104 return kFeatureEntries; 3113 return kFeatureEntries;
3105 } 3114 }
3106 3115
3107 } // namespace testing 3116 } // namespace testing
3108 3117
3109 } // namespace about_flags 3118 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | chrome/browser/flag_descriptions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698