| 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 8b1bdc15eae83a3180fece814448f8805d01484f..56497a741f085725b8ad2b232d2c69e70fdf0cdf 100644
|
| --- a/components/ntp_snippets/content_suggestions_service.cc
|
| +++ b/components/ntp_snippets/content_suggestions_service.cc
|
| @@ -192,8 +192,11 @@ void ContentSuggestionsService::OnNewSuggestions(
|
| if (RegisterCategoryIfRequired(provider, category))
|
| NotifyCategoryStatusChanged(category);
|
|
|
| - if (!IsCategoryStatusAvailable(provider->GetCategoryStatus(category)))
|
| + if (!IsCategoryStatusAvailable(provider->GetCategoryStatus(category))) {
|
| + // A provider shouldn't send us suggestions while it's not available.
|
| + DCHECK(suggestions.empty());
|
| return;
|
| + }
|
|
|
| suggestions_by_category_[category] = std::move(suggestions);
|
|
|
|
|