| 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 5d39f48383fccc79f83a78e3147e8094a295a787..50f47a48657c1309091afe1268d375d910bf42d4 100644
|
| --- a/components/ntp_snippets/content_suggestions_service.cc
|
| +++ b/components/ntp_snippets/content_suggestions_service.cc
|
| @@ -50,6 +50,14 @@ CategoryStatus ContentSuggestionsService::GetCategoryStatus(
|
| return iterator->second->GetCategoryStatus(category);
|
| }
|
|
|
| +base::Optional<CategoryInfo> ContentSuggestionsService::GetCategoryInfo(
|
| + Category category) const {
|
| + auto iterator = providers_by_category_.find(category);
|
| + if (iterator == providers_by_category_.end())
|
| + return base::Optional<CategoryInfo>();
|
| + return iterator->second->GetCategoryInfo(category);
|
| +}
|
| +
|
| const std::vector<ContentSuggestion>&
|
| ContentSuggestionsService::GetSuggestionsForCategory(Category category) const {
|
| auto iterator = suggestions_by_category_.find(category);
|
|
|