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

Side by Side 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 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 #ifndef CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_ 5 #ifndef CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_
6 #define CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_ 6 #define CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_
7 7
8 #include "base/feature_list.h" 8 #include "base/feature_list.h"
9 9
10 // Enables and configures notifications for content suggestions. 10 // Enables and configures notifications for content suggestions.
11 extern const base::Feature kContentSuggestionsNotificationsFeature; 11 extern const base::Feature kContentSuggestionsNotificationsFeature;
12 12
13 // "false": use server signals to decide whether to send a notification 13 // "false": use server signals to decide whether to send a notification
14 // "true": always send a notification when we receive ARTICLES suggestions 14 // "true": always send a notification when we receive ARTICLES suggestions
15 extern const char kContentSuggestionsNotificationsAlwaysNotifyParam[]; 15 extern const char kContentSuggestionsNotificationsAlwaysNotifyParam[];
16 16
17 // An integer. The number of notifications that can be ignored. If the user
18 // ignores this many notifications or more, we stop sending them.
19 extern const char kContentSuggestionsNotificationsIgnoredLimitParam[];
20 constexpr int kContentSuggestionsNotificationsIgnoredDefaultLimit = 3;
21
17 #endif // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_ 22 #endif // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698