| 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 f9631e3115176f6361e628bb40c364a1c6d28394..6cabf8b12ebaeca6fea5cd37c4a5fc98598f0a84 100644
|
| --- a/components/ntp_snippets/content_suggestions_service.cc
|
| +++ b/components/ntp_snippets/content_suggestions_service.cc
|
| @@ -104,13 +104,14 @@ void ContentSuggestionsService::ClearCachedSuggestionsForDebugging(
|
| iterator->second->ClearCachedSuggestionsForDebugging(category);
|
| }
|
|
|
| -std::vector<ContentSuggestion>
|
| -ContentSuggestionsService::GetDismissedSuggestionsForDebugging(
|
| - Category category) {
|
| +void ContentSuggestionsService::GetDismissedSuggestionsForDebugging(
|
| + Category category,
|
| + const DismissedSuggestionsCallback& callback) {
|
| auto iterator = providers_by_category_.find(category);
|
| - if (iterator == providers_by_category_.end())
|
| - return std::vector<ContentSuggestion>();
|
| - return iterator->second->GetDismissedSuggestionsForDebugging(category);
|
| + if (iterator != providers_by_category_.end())
|
| + iterator->second->GetDismissedSuggestionsForDebugging(category, callback);
|
| + else
|
| + callback.Run(std::vector<ContentSuggestion>());
|
| }
|
|
|
| void ContentSuggestionsService::ClearDismissedSuggestionsForDebugging(
|
|
|