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

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

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
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
deleted file mode 100644
index 4baa9e47ba799d75cd72636fffce3115e287d076..0000000000000000000000000000000000000000
--- a/chrome/browser/ntp_snippets/ntp_snippets_features.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_
-#define CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_
-
-#include "base/feature_list.h"
-
-namespace params {
-namespace ntp_snippets {
-
-// Enables and configures notifications for content suggestions.
-extern const base::Feature kNotificationsFeature;
-
-// An integer. The priority of the notification, ranging from -2 (PRIORITY_MIN)
-// to 2 (PRIORITY_MAX). Vibrates and makes sound if >= 0.
-extern const char kNotificationsPriorityParam[];
-constexpr int kNotificationsDefaultPriority = -1;
-
-// "publisher": use article's publisher as notification's text (default).
-// "snippet": use article's snippet as notification's text.
-// "and_more": use "From $1. Read this article and $2 more." as text.
-extern const char kNotificationsTextParam[];
-extern const char kNotificationsTextValuePublisher[];
-extern const char kNotificationsTextValueSnippet[];
-extern const char kNotificationsTextValueAndMore[];
-
-// "true": when Chrome becomes frontmost, leave notifications open.
-// "false": automatically dismiss notification when Chrome becomes frontmost.
-extern const char kNotificationsKeepWhenFrontmostParam[];
-
-// "true": notifications link to chrome://newtab, with appropriate text.
-// "false": notifications link to URL of notifying article.
-extern const char kNotificationsOpenToNTPParam[];
-
-// An integer. The maximum number of notifications that will be shown in 1 day.
-extern const char kNotificationsDailyLimit[];
-constexpr int kNotificationsDefaultDailyLimit = 1;
-
-// 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 kNotificationsIgnoredLimitParam[];
-constexpr int kNotificationsIgnoredDefaultLimit = 3;
-
-} // namespace ntp_snippets
-} // namespace params
-
-#endif // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_

Powered by Google App Engine
This is Rietveld 408576698