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 1edb4c8c6e46cd640bebefb9dc73563ea04587f9..99546b7f2e9ad352b9b6e6c091d5804633cb1c11 100644 |
--- a/components/ntp_snippets/ntp_snippets_service.cc |
+++ b/components/ntp_snippets/ntp_snippets_service.cc |
@@ -265,8 +265,13 @@ void NTPSnippetsService::FetchSnippetsFromHosts( |
if (snippets_.empty()) |
UpdateCategoryStatus(CategoryStatus::AVAILABLE_LOADING); |
- snippets_fetcher_->FetchSnippetsFromHosts( |
- hosts, application_language_code_, kMaxSnippetCount, interactive_request); |
+ std::set<std::string> excluded_ids; |
+ for (const auto& snippet : dismissed_snippets_) { |
+ excluded_ids.insert(snippet->id()); |
+ } |
+ snippets_fetcher_->FetchSnippetsFromHosts(hosts, application_language_code_, |
+ excluded_ids, kMaxSnippetCount, |
+ interactive_request); |
} |
void NTPSnippetsService::RescheduleFetching() { |