| Index: components/ntp_snippets/remote/ntp_snippets_service.cc
|
| diff --git a/components/ntp_snippets/remote/ntp_snippets_service.cc b/components/ntp_snippets/remote/ntp_snippets_service.cc
|
| index a33f6740e8eff6067ec389483de09d2897492089..3a03c5b7c6b3954d0c0b9afd64f7117f926e2862 100644
|
| --- a/components/ntp_snippets/remote/ntp_snippets_service.cc
|
| +++ b/components/ntp_snippets/remote/ntp_snippets_service.cc
|
| @@ -961,6 +961,8 @@ void NTPSnippetsService::EnterState(State state) {
|
| }
|
|
|
| void NTPSnippetsService::NotifyNewSuggestions() {
|
| + ContentSuggestionsProvider::Observer::SuggestionBatch receivedSuggestions;
|
| +
|
| for (const auto& item : categories_) {
|
| Category category = item.first;
|
| const CategoryContent& content = item.second;
|
| @@ -985,10 +987,10 @@ void NTPSnippetsService::NotifyNewSuggestions() {
|
| result.emplace_back(std::move(suggestion));
|
| }
|
|
|
| - DVLOG(1) << "NotifyNewSuggestions(): " << result.size()
|
| - << " items in category " << category;
|
| - observer()->OnNewSuggestions(this, category, std::move(result));
|
| + receivedSuggestions[category] = std::move(result);
|
| }
|
| +
|
| + observer()->OnNewSuggestionBatch(this, std::move(receivedSuggestions));
|
| }
|
|
|
| void NTPSnippetsService::UpdateCategoryStatus(Category category,
|
|
|