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

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

Issue 2614733002: [NTP::PhysicalWeb] Enable by default and depend on physical web flag. (Closed)
Patch Set: clean rebase. Created 3 years, 11 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/ui/webui/snippets_internals_message_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/time/clock.h" 7 #include "base/time/clock.h"
8 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h " 8 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h "
9 #include "components/ntp_snippets/category_rankers/constant_category_ranker.h" 9 #include "components/ntp_snippets/category_rankers/constant_category_ranker.h"
10 #include "components/variations/variations_associated_data.h" 10 #include "components/variations/variations_associated_data.h"
(...skipping 12 matching lines...) Expand all
23 const base::Feature kSaveToOfflineFeature{ 23 const base::Feature kSaveToOfflineFeature{
24 "NTPSaveToOffline", base::FEATURE_ENABLED_BY_DEFAULT}; 24 "NTPSaveToOffline", base::FEATURE_ENABLED_BY_DEFAULT};
25 25
26 const base::Feature kOfflineBadgeFeature{ 26 const base::Feature kOfflineBadgeFeature{
27 "NTPOfflineBadge", base::FEATURE_ENABLED_BY_DEFAULT}; 27 "NTPOfflineBadge", base::FEATURE_ENABLED_BY_DEFAULT};
28 28
29 const base::Feature kIncreasedVisibility{ 29 const base::Feature kIncreasedVisibility{
30 "NTPSnippetsIncreasedVisibility", base::FEATURE_ENABLED_BY_DEFAULT}; 30 "NTPSnippetsIncreasedVisibility", base::FEATURE_ENABLED_BY_DEFAULT};
31 31
32 const base::Feature kPhysicalWebPageSuggestionsFeature{ 32 const base::Feature kPhysicalWebPageSuggestionsFeature{
33 "NTPPhysicalWebPageSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; 33 "NTPPhysicalWebPageSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
34 34
35 const base::Feature kContentSuggestionsFeature{ 35 const base::Feature kContentSuggestionsFeature{
36 "NTPSnippets", base::FEATURE_ENABLED_BY_DEFAULT}; 36 "NTPSnippets", base::FEATURE_ENABLED_BY_DEFAULT};
37 37
38 const base::Feature kSectionDismissalFeature{ 38 const base::Feature kSectionDismissalFeature{
39 "NTPSuggestionsSectionDismissal", base::FEATURE_ENABLED_BY_DEFAULT}; 39 "NTPSuggestionsSectionDismissal", base::FEATURE_ENABLED_BY_DEFAULT};
40 40
41 const base::Feature kForeignSessionsSuggestionsFeature{ 41 const base::Feature kForeignSessionsSuggestionsFeature{
42 "NTPForeignSessionsSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; 42 "NTPForeignSessionsSuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
43 43
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 return base::MakeUnique<ClickBasedCategoryRanker>(pref_service, 86 return base::MakeUnique<ClickBasedCategoryRanker>(pref_service,
87 std::move(clock)); 87 std::move(clock));
88 default: 88 default:
89 NOTREACHED() << "The category ranker choice value is " 89 NOTREACHED() << "The category ranker choice value is "
90 << static_cast<int>(choice); 90 << static_cast<int>(choice);
91 } 91 }
92 return nullptr; 92 return nullptr;
93 } 93 }
94 94
95 } // namespace ntp_snippets 95 } // namespace ntp_snippets
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/snippets_internals_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698