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

Unified Diff: components/ntp_snippets/category_factory.cc

Issue 2406573002: 📰 Persist category dismissals (Closed)
Patch Set: fix nits 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
« no previous file with comments | « components/ntp_snippets/category.h ('k') | components/ntp_snippets/category_factory_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/category_factory.cc
diff --git a/components/ntp_snippets/category_factory.cc b/components/ntp_snippets/category_factory.cc
index 4da984e016232a02443f6d041209e40c429b63c2..a8e0740b6196dd3c1c827e799a9a63254f801860 100644
--- a/components/ntp_snippets/category_factory.cc
+++ b/components/ntp_snippets/category_factory.cc
@@ -22,6 +22,10 @@ CategoryFactory::CategoryFactory() {
DCHECK_EQ(static_cast<size_t>(KnownCategories::LOCAL_CATEGORIES_COUNT),
ordered_categories_.size());
+
+ // Known remote categories come after. Other remote categories will be ordered
+ // after these depending on when providers notify us about a related change.
+ AddKnownCategory(KnownCategories::ARTICLES);
}
CategoryFactory::~CategoryFactory() = default;
« no previous file with comments | « components/ntp_snippets/category.h ('k') | components/ntp_snippets/category_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698