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

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

Issue 2858883002: Add flag for disabling minimum of ntp tile suggestions (Closed)
Patch Set: Rebase 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "components/password_manager/core/common/password_manager_features.h" 59 #include "components/password_manager/core/common/password_manager_features.h"
60 #include "components/proximity_auth/switches.h" 60 #include "components/proximity_auth/switches.h"
61 #include "components/security_state/core/security_state.h" 61 #include "components/security_state/core/security_state.h"
62 #include "components/security_state/core/switches.h" 62 #include "components/security_state/core/switches.h"
63 #include "components/signin/core/common/signin_switches.h" 63 #include "components/signin/core/common/signin_switches.h"
64 #include "components/spellcheck/common/spellcheck_features.h" 64 #include "components/spellcheck/common/spellcheck_features.h"
65 #include "components/spellcheck/common/spellcheck_switches.h" 65 #include "components/spellcheck/common/spellcheck_switches.h"
66 #include "components/spellcheck/spellcheck_build_features.h" 66 #include "components/spellcheck/spellcheck_build_features.h"
67 #include "components/ssl_config/ssl_config_switches.h" 67 #include "components/ssl_config/ssl_config_switches.h"
68 #include "components/strings/grit/components_strings.h" 68 #include "components/strings/grit/components_strings.h"
69 #include "components/suggestions/features.h"
69 #include "components/sync/driver/sync_driver_switches.h" 70 #include "components/sync/driver/sync_driver_switches.h"
70 #include "components/tracing/common/tracing_switches.h" 71 #include "components/tracing/common/tracing_switches.h"
71 #include "components/translate/core/browser/translate_infobar_delegate.h" 72 #include "components/translate/core/browser/translate_infobar_delegate.h"
72 #include "components/translate/core/browser/translate_manager.h" 73 #include "components/translate/core/browser/translate_manager.h"
73 #include "components/translate/core/browser/translate_prefs.h" 74 #include "components/translate/core/browser/translate_prefs.h"
74 #include "components/version_info/version_info.h" 75 #include "components/version_info/version_info.h"
75 #include "content/public/common/content_features.h" 76 #include "content/public/common/content_features.h"
76 #include "content/public/common/content_switches.h" 77 #include "content/public/common/content_switches.h"
77 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" 78 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h"
78 #include "content/public/common/features.h" 79 #include "content/public/common/features.h"
(...skipping 2746 matching lines...) Expand 10 before | Expand all | Expand 10 after
2825 {"enable-heap-profiling", flag_descriptions::kEnableHeapProfilingName, 2826 {"enable-heap-profiling", flag_descriptions::kEnableHeapProfilingName,
2826 flag_descriptions::kEnableHeapProfilingDescription, kOsAll, 2827 flag_descriptions::kEnableHeapProfilingDescription, kOsAll,
2827 MULTI_VALUE_TYPE(kEnableHeapProfilingChoices)}, 2828 MULTI_VALUE_TYPE(kEnableHeapProfilingChoices)},
2828 2829
2829 #if defined(TOOLKIT_VIEWS) || (defined(OS_MACOSX) && !defined(OS_IOS)) 2830 #if defined(TOOLKIT_VIEWS) || (defined(OS_MACOSX) && !defined(OS_IOS))
2830 {"show-cert-link", flag_descriptions::kShowCertLinkOnPageInfoName, 2831 {"show-cert-link", flag_descriptions::kShowCertLinkOnPageInfoName,
2831 flag_descriptions::kShowCertLinkOnPageInfoDescription, kOsDesktop, 2832 flag_descriptions::kShowCertLinkOnPageInfoDescription, kOsDesktop,
2832 SINGLE_VALUE_TYPE(switches::kShowCertLink)}, 2833 SINGLE_VALUE_TYPE(switches::kShowCertLink)},
2833 #endif 2834 #endif
2834 2835
2836 {"use-suggestions-even-if-few",
2837 flag_descriptions::kUseSuggestionsEvenIfFewFeatureName,
2838 flag_descriptions::kUseSuggestionsEvenIfFewFeatureDescription, kOsAll,
2839 FEATURE_VALUE_TYPE(suggestions::kUseSuggestionsEvenIfFewFeature)},
2840
2835 // NOTE: Adding new command-line switches requires adding corresponding 2841 // NOTE: Adding new command-line switches requires adding corresponding
2836 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2842 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2837 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2843 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2838 }; 2844 };
2839 2845
2840 class FlagsStateSingleton { 2846 class FlagsStateSingleton {
2841 public: 2847 public:
2842 FlagsStateSingleton() 2848 FlagsStateSingleton()
2843 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2849 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2844 ~FlagsStateSingleton() {} 2850 ~FlagsStateSingleton() {}
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
3050 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 3056 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
3051 3057
3052 const FeatureEntry* GetFeatureEntries(size_t* count) { 3058 const FeatureEntry* GetFeatureEntries(size_t* count) {
3053 *count = arraysize(kFeatureEntries); 3059 *count = arraysize(kFeatureEntries);
3054 return kFeatureEntries; 3060 return kFeatureEntries;
3055 } 3061 }
3056 3062
3057 } // namespace testing 3063 } // namespace testing
3058 3064
3059 } // namespace about_flags 3065 } // 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