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) { |