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

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

Issue 2655263003: [NTP] Remove the ScrollView version of the NTP. (Closed)
Patch Set: Cleaned up some more. Created 3 years, 10 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/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/time/clock.h" 8 #include "base/time/clock.h"
9 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h " 9 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h "
10 #include "components/ntp_snippets/category_rankers/constant_category_ranker.h" 10 #include "components/ntp_snippets/category_rankers/constant_category_ranker.h"
(...skipping 15 matching lines...) Expand all
26 26
27 const base::Feature kOfflineBadgeFeature{ 27 const base::Feature kOfflineBadgeFeature{
28 "NTPOfflineBadge", base::FEATURE_ENABLED_BY_DEFAULT}; 28 "NTPOfflineBadge", base::FEATURE_ENABLED_BY_DEFAULT};
29 29
30 const base::Feature kIncreasedVisibility{ 30 const base::Feature kIncreasedVisibility{
31 "NTPSnippetsIncreasedVisibility", base::FEATURE_ENABLED_BY_DEFAULT}; 31 "NTPSnippetsIncreasedVisibility", base::FEATURE_ENABLED_BY_DEFAULT};
32 32
33 const base::Feature kPhysicalWebPageSuggestionsFeature{ 33 const base::Feature kPhysicalWebPageSuggestionsFeature{
34 "NTPPhysicalWebPageSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; 34 "NTPPhysicalWebPageSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
35 35
36 const base::Feature kContentSuggestionsFeature{ 36 const base::Feature kContentSuggestionsSource{
37 "NTPSnippets", base::FEATURE_ENABLED_BY_DEFAULT}; 37 "NTPSnippets", base::FEATURE_ENABLED_BY_DEFAULT};
38 38
39 const base::Feature kSectionDismissalFeature{ 39 const base::Feature kSectionDismissalFeature{
40 "NTPSuggestionsSectionDismissal", base::FEATURE_ENABLED_BY_DEFAULT}; 40 "NTPSuggestionsSectionDismissal", base::FEATURE_ENABLED_BY_DEFAULT};
41 41
42 const base::Feature kForeignSessionsSuggestionsFeature{ 42 const base::Feature kForeignSessionsSuggestionsFeature{
43 "NTPForeignSessionsSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; 43 "NTPForeignSessionsSuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
44 44
45 const base::Feature kFetchMoreFeature{"NTPSuggestionsFetchMore", 45 const base::Feature kFetchMoreFeature{"NTPSuggestionsFetchMore",
46 base::FEATURE_ENABLED_BY_DEFAULT}; 46 base::FEATURE_ENABLED_BY_DEFAULT};
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 return base::MakeUnique<ClickBasedCategoryRanker>(pref_service, 87 return base::MakeUnique<ClickBasedCategoryRanker>(pref_service,
88 std::move(clock)); 88 std::move(clock));
89 default: 89 default:
90 NOTREACHED() << "The category ranker choice value is " 90 NOTREACHED() << "The category ranker choice value is "
91 << static_cast<int>(choice); 91 << static_cast<int>(choice);
92 } 92 }
93 return nullptr; 93 return nullptr;
94 } 94 }
95 95
96 } // namespace ntp_snippets 96 } // namespace ntp_snippets
OLDNEW
« no previous file with comments | « components/ntp_snippets/features.h ('k') | ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698