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

Unified Diff: components/ntp_snippets/features.h

Issue 2279123002: [Sync] Initial implementation of foreign sessions suggestions provider. (Closed)
Patch Set: Updating for comments, again! Created 4 years, 3 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/content_suggestions_metrics.cc ('k') | components/ntp_snippets/features.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/features.h
diff --git a/components/ntp_snippets/features.h b/components/ntp_snippets/features.h
index 655b99f0d8afc2047d93a32e2083cecbb3d1e248..a3b16089253a358c2e930900460b02391e441309 100644
--- a/components/ntp_snippets/features.h
+++ b/components/ntp_snippets/features.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_NTP_SNIPPETS_FEATURES_H_
#define COMPONENTS_NTP_SNIPPETS_FEATURES_H_
+#include <string>
+
#include "base/feature_list.h"
namespace ntp_snippets {
@@ -15,6 +17,7 @@ extern const base::Feature kBookmarkSuggestionsFeature;
extern const base::Feature kRecentOfflineTabSuggestionsFeature;
extern const base::Feature kDownloadSuggestionsFeature;
extern const base::Feature kPhysicalWebPageSuggestionsFeature;
+extern const base::Feature kForeignSessionsSuggestionsFeature;
// Feature to allow the 'save to offline' option to appear in the snippets
// context menu.
@@ -24,6 +27,11 @@ extern const base::Feature kSaveToOfflineFeature;
// false, all the per-provider features are ignored.
extern const base::Feature kContentSuggestionsFeature;
+// Returns a feature param as an int instead of a string.
+int GetParamAsInt(const base::Feature& feature,
+ const std::string& param_name,
+ int default_value);
+
} // namespace ntp_snippets
#endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_
« no previous file with comments | « components/ntp_snippets/content_suggestions_metrics.cc ('k') | components/ntp_snippets/features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698