| Index: components/ntp_snippets/ntp_snippets_service.cc
|
| diff --git a/components/ntp_snippets/ntp_snippets_service.cc b/components/ntp_snippets/ntp_snippets_service.cc
|
| index af70250a0c84904732e9ed7e23ba02f38c20bb37..c342766044520d0f4e01c4b864519dd7c38278a9 100644
|
| --- a/components/ntp_snippets/ntp_snippets_service.cc
|
| +++ b/components/ntp_snippets/ntp_snippets_service.cc
|
| @@ -337,8 +337,9 @@ void NTPSnippetsService::ClearCachedSuggestionsForDebugging(Category category) {
|
| NotifyNewSuggestions();
|
| }
|
|
|
| -std::vector<ContentSuggestion>
|
| -NTPSnippetsService::GetDismissedSuggestionsForDebugging(Category category) {
|
| +void NTPSnippetsService::GetDismissedSuggestionsForDebugging(
|
| + Category category,
|
| + const DismissedSuggestionsCallback& callback) {
|
| DCHECK_EQ(category, provided_category_);
|
| std::vector<ContentSuggestion> result;
|
| for (const std::unique_ptr<NTPSnippet>& snippet : dismissed_snippets_) {
|
| @@ -356,7 +357,7 @@ NTPSnippetsService::GetDismissedSuggestionsForDebugging(Category category) {
|
| suggestion.set_score(snippet->score());
|
| result.emplace_back(std::move(suggestion));
|
| }
|
| - return result;
|
| + callback.Run(std::move(result));
|
| }
|
|
|
| void NTPSnippetsService::ClearDismissedSuggestionsForDebugging(
|
|
|