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

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

Issue 2874773002: Add feature to control showing suggestion summaries. (Closed)
Patch Set: Add entries to enums.xml 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
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 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after
2260 {"enable-ntp-tiles-favicons-from-server", 2260 {"enable-ntp-tiles-favicons-from-server",
2261 flag_descriptions::kEnableNtpMostLikelyFaviconsFromServerName, 2261 flag_descriptions::kEnableNtpMostLikelyFaviconsFromServerName,
2262 flag_descriptions::kEnableNtpMostLikelyFaviconsFromServerDescription, 2262 flag_descriptions::kEnableNtpMostLikelyFaviconsFromServerDescription,
2263 kOsAndroid, 2263 kOsAndroid,
2264 FEATURE_VALUE_TYPE(ntp_tiles::kNtpMostLikelyFaviconsFromServerFeature)}, 2264 FEATURE_VALUE_TYPE(ntp_tiles::kNtpMostLikelyFaviconsFromServerFeature)},
2265 {"enable-content-suggestions-settings", 2265 {"enable-content-suggestions-settings",
2266 flag_descriptions::kEnableContentSuggestionsSettingsName, 2266 flag_descriptions::kEnableContentSuggestionsSettingsName,
2267 flag_descriptions::kEnableContentSuggestionsSettingsDescription, 2267 flag_descriptions::kEnableContentSuggestionsSettingsDescription,
2268 kOsAndroid, 2268 kOsAndroid,
2269 FEATURE_VALUE_TYPE(chrome::android::kContentSuggestionsSettings)}, 2269 FEATURE_VALUE_TYPE(chrome::android::kContentSuggestionsSettings)},
2270 {"enable-content-suggestions-show-summary",
2271 flag_descriptions::kEnableContentSuggestionsShowSummaryName,
2272 flag_descriptions::kEnableContentSuggestionsShowSummaryDescription,
2273 kOsAndroid,
2274 FEATURE_VALUE_TYPE(chrome::android::kContentSuggestionsShowSummary)},
2270 {"enable-ntp-remote-suggestions", 2275 {"enable-ntp-remote-suggestions",
2271 flag_descriptions::kEnableNtpRemoteSuggestionsName, 2276 flag_descriptions::kEnableNtpRemoteSuggestionsName,
2272 flag_descriptions::kEnableNtpRemoteSuggestionsDescription, kOsAndroid, 2277 flag_descriptions::kEnableNtpRemoteSuggestionsDescription, kOsAndroid,
2273 FEATURE_WITH_PARAMS_VALUE_TYPE( 2278 FEATURE_WITH_PARAMS_VALUE_TYPE(
2274 ntp_snippets::kArticleSuggestionsFeature, 2279 ntp_snippets::kArticleSuggestionsFeature,
2275 kRemoteSuggestionsFeatureVariations, 2280 kRemoteSuggestionsFeatureVariations,
2276 ntp_snippets::kArticleSuggestionsFeature.name)}, 2281 ntp_snippets::kArticleSuggestionsFeature.name)},
2277 {"enable-ntp-recent-offline-tab-suggestions", 2282 {"enable-ntp-recent-offline-tab-suggestions",
2278 flag_descriptions::kEnableNtpRecentOfflineTabSuggestionsName, 2283 flag_descriptions::kEnableNtpRecentOfflineTabSuggestionsName,
2279 flag_descriptions::kEnableNtpRecentOfflineTabSuggestionsDescription, 2284 flag_descriptions::kEnableNtpRecentOfflineTabSuggestionsDescription,
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
3099 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 3104 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
3100 3105
3101 const FeatureEntry* GetFeatureEntries(size_t* count) { 3106 const FeatureEntry* GetFeatureEntries(size_t* count) {
3102 *count = arraysize(kFeatureEntries); 3107 *count = arraysize(kFeatureEntries);
3103 return kFeatureEntries; 3108 return kFeatureEntries;
3104 } 3109 }
3105 3110
3106 } // namespace testing 3111 } // namespace testing
3107 3112
3108 } // namespace about_flags 3113 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698