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

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

Issue 2831553003: List our features in ntp_snippets::kAllFeatures (Closed)
Patch Set: 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
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 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 {"enable-ntp-foreign-sessions-suggestions", 2212 {"enable-ntp-foreign-sessions-suggestions",
2214 flag_descriptions::kEnableNtpForeignSessionsSuggestionsName, 2213 flag_descriptions::kEnableNtpForeignSessionsSuggestionsName,
2215 flag_descriptions::kEnableNtpForeignSessionsSuggestionsDescription, 2214 flag_descriptions::kEnableNtpForeignSessionsSuggestionsDescription,
2216 kOsAndroid, 2215 kOsAndroid,
2217 FEATURE_VALUE_TYPE(ntp_snippets::kForeignSessionsSuggestionsFeature)}, 2216 FEATURE_VALUE_TYPE(ntp_snippets::kForeignSessionsSuggestionsFeature)},
2218 {"enable-ntp-suggestions-notifications", 2217 {"enable-ntp-suggestions-notifications",
2219 flag_descriptions::kEnableNtpSuggestionsNotificationsName, 2218 flag_descriptions::kEnableNtpSuggestionsNotificationsName,
2220 flag_descriptions::kEnableNtpSuggestionsNotificationsDescription, 2219 flag_descriptions::kEnableNtpSuggestionsNotificationsDescription,
2221 kOsAndroid, 2220 kOsAndroid,
2222 FEATURE_WITH_PARAMS_VALUE_TYPE( 2221 FEATURE_WITH_PARAMS_VALUE_TYPE(
2223 params::ntp_snippets::kNotificationsFeature, 2222 ntp_snippets::kNotificationsFeature,
2224 kContentSuggestionsNotificationsFeatureVariations, 2223 kContentSuggestionsNotificationsFeatureVariations,
2225 params::ntp_snippets::kNotificationsFeature.name)}, 2224 ntp_snippets::kNotificationsFeature.name)},
2226 {"ntp-condensed-layout", flag_descriptions::kNtpCondensedLayoutName, 2225 {"ntp-condensed-layout", flag_descriptions::kNtpCondensedLayoutName,
2227 flag_descriptions::kNtpCondensedLayoutDescription, kOsAndroid, 2226 flag_descriptions::kNtpCondensedLayoutDescription, kOsAndroid,
2228 FEATURE_VALUE_TYPE(chrome::android::kNTPCondensedLayoutFeature)}, 2227 FEATURE_VALUE_TYPE(chrome::android::kNTPCondensedLayoutFeature)},
2229 {"ntp-condensed-tile-layout", 2228 {"ntp-condensed-tile-layout",
2230 flag_descriptions::kNtpCondensedTileLayoutName, 2229 flag_descriptions::kNtpCondensedTileLayoutName,
2231 flag_descriptions::kNtpCondensedTileLayoutDescription, kOsAndroid, 2230 flag_descriptions::kNtpCondensedTileLayoutDescription, kOsAndroid,
2232 FEATURE_WITH_PARAMS_VALUE_TYPE( 2231 FEATURE_WITH_PARAMS_VALUE_TYPE(
2233 chrome::android::kNTPCondensedTileLayoutFeature, 2232 chrome::android::kNTPCondensedTileLayoutFeature,
2234 kNTPCondensedTileLayoutFeatureVariations, 2233 kNTPCondensedTileLayoutFeatureVariations,
2235 chrome::android::kNTPCondensedTileLayoutFeature.name)}, 2234 chrome::android::kNTPCondensedTileLayoutFeature.name)},
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
2939 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2938 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2940 2939
2941 const FeatureEntry* GetFeatureEntries(size_t* count) { 2940 const FeatureEntry* GetFeatureEntries(size_t* count) {
2942 *count = arraysize(kFeatureEntries); 2941 *count = arraysize(kFeatureEntries);
2943 return kFeatureEntries; 2942 return kFeatureEntries;
2944 } 2943 }
2945 2944
2946 } // namespace testing 2945 } // namespace testing
2947 2946
2948 } // namespace about_flags 2947 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698