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

Unified Diff: components/ntp_snippets/features.cc

Issue 2831553003: List our features in ntp_snippets::kAllFeatures (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/ntp_snippets/features.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/features.cc
diff --git a/components/ntp_snippets/features.cc b/components/ntp_snippets/features.cc
index 0b90a4271f144b03a196249075c01dcd95045b5c..6910f402873d47bcb347aee49a2972d04d22dca7 100644
--- a/components/ntp_snippets/features.cc
+++ b/components/ntp_snippets/features.cc
@@ -13,6 +13,20 @@
namespace ntp_snippets {
+// Keep sorted, and keep nullptr at the end.
+const base::Feature*(kAllFeatures[]) = {&kArticleSuggestionsFeature,
+ &kBookmarkSuggestionsFeature,
+ &kCategoryOrder,
+ &kCategoryRanker,
+ &kForeignSessionsSuggestionsFeature,
+ &kIncreasedVisibility,
+ &kNotificationsFeature,
+ &kPhysicalWebPageSuggestionsFeature,
+ &kPreferAmpUrlsFeature,
+ &kPublisherFaviconsFromNewServerFeature,
+ &kRecentOfflineTabSuggestionsFeature,
+ nullptr};
+
const base::Feature kArticleSuggestionsFeature{
"NTPArticleSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
@@ -113,4 +127,18 @@ CategoryOrderChoice GetSelectedCategoryOrder() {
return CategoryOrderChoice::GENERAL;
}
+const base::Feature kNotificationsFeature = {"ContentSuggestionsNotifications",
+ base::FEATURE_DISABLED_BY_DEFAULT};
+
+const char kNotificationsPriorityParam[] = "priority";
+const char kNotificationsTextParam[] = "text";
+const char kNotificationsTextValuePublisher[] = "publisher";
+const char kNotificationsTextValueSnippet[] = "snippet";
+const char kNotificationsTextValueAndMore[] = "and_more";
+const char kNotificationsKeepWhenFrontmostParam[] =
+ "keep_notification_when_frontmost";
+const char kNotificationsOpenToNTPParam[] = "open_to_ntp";
+const char kNotificationsDailyLimit[] = "daily_limit";
+const char kNotificationsIgnoredLimitParam[] = "ignored_limit";
+
} // namespace ntp_snippets
« no previous file with comments | « components/ntp_snippets/features.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698