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

Unified Diff: components/ntp_snippets/category.h

Issue 2406573002: 📰 Persist category dismissals (Closed)
Patch Set: ready for review Created 4 years, 2 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: components/ntp_snippets/category.h
diff --git a/components/ntp_snippets/category.h b/components/ntp_snippets/category.h
index 0220cb54e97c51cf5e28738c0aa06f00af4a5252..c4b5701764e31db41b95dbf4698f6679a16f5e80 100644
--- a/components/ntp_snippets/category.h
+++ b/components/ntp_snippets/category.h
@@ -64,6 +64,11 @@ class Category {
// Returns whether this category matches the given |known_category|.
bool IsKnownCategory(KnownCategories known_category) const;
+ // Returns whether this category is a remote category. Note: this looks at
+ // the |id_| to determine this and requires remote categories to respect the
+ // restriction on remote ids expressed in |KnownCategories|.
+ bool IsRemote() const;
+
private:
friend class CategoryFactory;

Powered by Google App Engine
This is Rietveld 408576698