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

Side by Side Diff: components/ntp_snippets/features.cc

Issue 2744253004: NTP: clang-format (Closed)
Patch Set: Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/ntp_snippets/features.h" 5 #include "components/ntp_snippets/features.h"
6 6
7 #include "base/feature_list.h" 7 #include "base/feature_list.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/time/clock.h" 9 #include "base/time/clock.h"
10 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h " 10 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h "
11 #include "components/ntp_snippets/category_rankers/constant_category_ranker.h" 11 #include "components/ntp_snippets/category_rankers/constant_category_ranker.h"
12 #include "components/variations/variations_associated_data.h" 12 #include "components/variations/variations_associated_data.h"
13 13
14 namespace ntp_snippets { 14 namespace ntp_snippets {
15 15
16 const base::Feature kArticleSuggestionsFeature{ 16 const base::Feature kArticleSuggestionsFeature{
17 "NTPArticleSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; 17 "NTPArticleSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
18 18
19 const base::Feature kBookmarkSuggestionsFeature{ 19 const base::Feature kBookmarkSuggestionsFeature{
20 "NTPBookmarkSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; 20 "NTPBookmarkSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
21 21
22 const base::Feature kRecentOfflineTabSuggestionsFeature{ 22 const base::Feature kRecentOfflineTabSuggestionsFeature{
23 "NTPOfflinePageSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; 23 "NTPOfflinePageSuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
24 24
25 const base::Feature kSaveToOfflineFeature{ 25 const base::Feature kSaveToOfflineFeature{"NTPSaveToOffline",
26 "NTPSaveToOffline", base::FEATURE_ENABLED_BY_DEFAULT}; 26 base::FEATURE_ENABLED_BY_DEFAULT};
27 27
28 const base::Feature kOfflineBadgeFeature{ 28 const base::Feature kOfflineBadgeFeature{"NTPOfflineBadge",
29 "NTPOfflineBadge", base::FEATURE_ENABLED_BY_DEFAULT}; 29 base::FEATURE_ENABLED_BY_DEFAULT};
30 30
31 const base::Feature kIncreasedVisibility{ 31 const base::Feature kIncreasedVisibility{"NTPSnippetsIncreasedVisibility",
32 "NTPSnippetsIncreasedVisibility", base::FEATURE_ENABLED_BY_DEFAULT}; 32 base::FEATURE_ENABLED_BY_DEFAULT};
33 33
34 const base::Feature kPhysicalWebPageSuggestionsFeature{ 34 const base::Feature kPhysicalWebPageSuggestionsFeature{
35 "NTPPhysicalWebPageSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; 35 "NTPPhysicalWebPageSuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
36 36
37 const base::Feature kForeignSessionsSuggestionsFeature{ 37 const base::Feature kForeignSessionsSuggestionsFeature{
38 "NTPForeignSessionsSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; 38 "NTPForeignSessionsSuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
39 39
40 const base::Feature kPreferAmpUrlsFeature{"NTPPreferAmpUrls", 40 const base::Feature kPreferAmpUrlsFeature{"NTPPreferAmpUrls",
41 base::FEATURE_ENABLED_BY_DEFAULT}; 41 base::FEATURE_ENABLED_BY_DEFAULT};
42 42
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 if (category_order_value == kCategoryOrderEmergingMarketsOriented) { 109 if (category_order_value == kCategoryOrderEmergingMarketsOriented) {
110 return CategoryOrderChoice::EMERGING_MARKETS_ORIENTED; 110 return CategoryOrderChoice::EMERGING_MARKETS_ORIENTED;
111 } 111 }
112 112
113 LOG(DFATAL) << "The " << kCategoryOrderParameter << " parameter value is '" 113 LOG(DFATAL) << "The " << kCategoryOrderParameter << " parameter value is '"
114 << category_order_value << "'"; 114 << category_order_value << "'";
115 return CategoryOrderChoice::GENERAL; 115 return CategoryOrderChoice::GENERAL;
116 } 116 }
117 117
118 } // namespace ntp_snippets 118 } // namespace ntp_snippets
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698