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

Unified Diff: chrome/browser/ntp_snippets/ntp_snippets_features.h

Issue 2626643002: Stop showing notifications if they're ignored (Closed)
Patch Set: String.equals() 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ntp_snippets/ntp_snippets_features.h
diff --git a/chrome/browser/ntp_snippets/ntp_snippets_features.h b/chrome/browser/ntp_snippets/ntp_snippets_features.h
index 02a33f6a938194f8767b6ee8a3b361b8f877c2af..5e7817c4c248e6834ae647fec15237fb1c7e6c77 100644
--- a/chrome/browser/ntp_snippets/ntp_snippets_features.h
+++ b/chrome/browser/ntp_snippets/ntp_snippets_features.h
@@ -14,4 +14,9 @@ extern const base::Feature kContentSuggestionsNotificationsFeature;
// "true": always send a notification when we receive ARTICLES suggestions
extern const char kContentSuggestionsNotificationsAlwaysNotifyParam[];
+// An integer. The number of notifications that can be ignored. If the user
+// ignores this many notifications or more, we stop sending them.
+extern const char kContentSuggestionsNotificationsIgnoredLimitParam[];
+constexpr int kContentSuggestionsNotificationsIgnoredDefaultLimit = 3;
+
#endif // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_

Powered by Google App Engine
This is Rietveld 408576698