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

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

Issue 2831553003: List our features in ntp_snippets::kAllFeatures (Closed)
Patch Set: rebase Created 3 years, 8 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/chrome_feature_list.cc » ('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 10 matching lines...) Expand all
21 #include "base/stl_util.h" 21 #include "base/stl_util.h"
22 #include "base/strings/string_number_conversions.h" 22 #include "base/strings/string_number_conversions.h"
23 #include "base/strings/string_util.h" 23 #include "base/strings/string_util.h"
24 #include "base/strings/utf_string_conversions.h" 24 #include "base/strings/utf_string_conversions.h"
25 #include "base/task_scheduler/switches.h" 25 #include "base/task_scheduler/switches.h"
26 #include "base/values.h" 26 #include "base/values.h"
27 #include "build/build_config.h" 27 #include "build/build_config.h"
28 #include "cc/base/switches.h" 28 #include "cc/base/switches.h"
29 #include "chrome/browser/experiments/memory_ablation_experiment.h" 29 #include "chrome/browser/experiments/memory_ablation_experiment.h"
30 #include "chrome/browser/flag_descriptions.h" 30 #include "chrome/browser/flag_descriptions.h"
31 #include "chrome/browser/ntp_snippets/ntp_snippets_features.h"
32 #include "chrome/browser/predictors/resource_prefetch_common.h" 31 #include "chrome/browser/predictors/resource_prefetch_common.h"
33 #include "chrome/browser/prerender/prerender_field_trial.h" 32 #include "chrome/browser/prerender/prerender_field_trial.h"
34 #include "chrome/common/channel_info.h" 33 #include "chrome/common/channel_info.h"
35 #include "chrome/common/chrome_content_client.h" 34 #include "chrome/common/chrome_content_client.h"
36 #include "chrome/common/chrome_features.h" 35 #include "chrome/common/chrome_features.h"
37 #include "chrome/common/chrome_switches.h" 36 #include "chrome/common/chrome_switches.h"
38 #include "chrome/common/features.h" 37 #include "chrome/common/features.h"
39 #include "chrome/common/pause_tabs_field_trial.h" 38 #include "chrome/common/pause_tabs_field_trial.h"
40 #include "chrome/grit/chromium_strings.h" 39 #include "chrome/grit/chromium_strings.h"
41 #include "components/autofill/core/browser/autofill_experiments.h" 40 #include "components/autofill/core/browser/autofill_experiments.h"
(...skipping 2178 matching lines...) Expand 10 before | Expand all | Expand 10 after
2220 {"enable-ntp-foreign-sessions-suggestions", 2219 {"enable-ntp-foreign-sessions-suggestions",
2221 flag_descriptions::kEnableNtpForeignSessionsSuggestionsName, 2220 flag_descriptions::kEnableNtpForeignSessionsSuggestionsName,
2222 flag_descriptions::kEnableNtpForeignSessionsSuggestionsDescription, 2221 flag_descriptions::kEnableNtpForeignSessionsSuggestionsDescription,
2223 kOsAndroid, 2222 kOsAndroid,
2224 FEATURE_VALUE_TYPE(ntp_snippets::kForeignSessionsSuggestionsFeature)}, 2223 FEATURE_VALUE_TYPE(ntp_snippets::kForeignSessionsSuggestionsFeature)},
2225 {"enable-ntp-suggestions-notifications", 2224 {"enable-ntp-suggestions-notifications",
2226 flag_descriptions::kEnableNtpSuggestionsNotificationsName, 2225 flag_descriptions::kEnableNtpSuggestionsNotificationsName,
2227 flag_descriptions::kEnableNtpSuggestionsNotificationsDescription, 2226 flag_descriptions::kEnableNtpSuggestionsNotificationsDescription,
2228 kOsAndroid, 2227 kOsAndroid,
2229 FEATURE_WITH_PARAMS_VALUE_TYPE( 2228 FEATURE_WITH_PARAMS_VALUE_TYPE(
2230 params::ntp_snippets::kNotificationsFeature, 2229 ntp_snippets::kNotificationsFeature,
2231 kContentSuggestionsNotificationsFeatureVariations, 2230 kContentSuggestionsNotificationsFeatureVariations,
2232 params::ntp_snippets::kNotificationsFeature.name)}, 2231 ntp_snippets::kNotificationsFeature.name)},
2233 {"ntp-condensed-layout", flag_descriptions::kNtpCondensedLayoutName, 2232 {"ntp-condensed-layout", flag_descriptions::kNtpCondensedLayoutName,
2234 flag_descriptions::kNtpCondensedLayoutDescription, kOsAndroid, 2233 flag_descriptions::kNtpCondensedLayoutDescription, kOsAndroid,
2235 FEATURE_VALUE_TYPE(chrome::android::kNTPCondensedLayoutFeature)}, 2234 FEATURE_VALUE_TYPE(chrome::android::kNTPCondensedLayoutFeature)},
2236 {"ntp-condensed-tile-layout", 2235 {"ntp-condensed-tile-layout",
2237 flag_descriptions::kNtpCondensedTileLayoutName, 2236 flag_descriptions::kNtpCondensedTileLayoutName,
2238 flag_descriptions::kNtpCondensedTileLayoutDescription, kOsAndroid, 2237 flag_descriptions::kNtpCondensedTileLayoutDescription, kOsAndroid,
2239 FEATURE_WITH_PARAMS_VALUE_TYPE( 2238 FEATURE_WITH_PARAMS_VALUE_TYPE(
2240 chrome::android::kNTPCondensedTileLayoutFeature, 2239 chrome::android::kNTPCondensedTileLayoutFeature,
2241 kNTPCondensedTileLayoutFeatureVariations, 2240 kNTPCondensedTileLayoutFeatureVariations,
2242 chrome::android::kNTPCondensedTileLayoutFeature.name)}, 2241 chrome::android::kNTPCondensedTileLayoutFeature.name)},
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
2962 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2961 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2963 2962
2964 const FeatureEntry* GetFeatureEntries(size_t* count) { 2963 const FeatureEntry* GetFeatureEntries(size_t* count) {
2965 *count = arraysize(kFeatureEntries); 2964 *count = arraysize(kFeatureEntries);
2966 return kFeatureEntries; 2965 return kFeatureEntries;
2967 } 2966 }
2968 2967
2969 } // namespace testing 2968 } // namespace testing
2970 2969
2971 } // namespace about_flags 2970 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/chrome_feature_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698