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

Unified Diff: components/ntp_snippets/content_suggestions_service.cc

Issue 2581163004: [NTP::SectionOrder] Propagate new order through ContentSuggestionsService. (Closed)
Patch Set: tschumann@ comments. Created 4 years 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/content_suggestions_service.cc
diff --git a/components/ntp_snippets/content_suggestions_service.cc b/components/ntp_snippets/content_suggestions_service.cc
index 62bb459dfcfb6ae8757f869409de1b999b586d1c..98055d7778d05e5fd3229102cf877dcb8b696b6e 100644
--- a/components/ntp_snippets/content_suggestions_service.cc
+++ b/components/ntp_snippets/content_suggestions_service.cc
@@ -66,6 +66,11 @@ void ContentSuggestionsService::RegisterProfilePrefs(
registry->RegisterListPref(prefs::kDismissedCategories);
}
+const std::vector<Category>& ContentSuggestionsService::GetCategories() {
+ SortCategories();
+ return categories_;
+}
+
CategoryStatus ContentSuggestionsService::GetCategoryStatus(
Category category) const {
if (state_ == State::DISABLED) {

Powered by Google App Engine
This is Rietveld 408576698