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 1c8a12acfa6e90752082ce69e8841384db8ef89b..2d96c0c2d3329b998c2a64ef36328933121db02b 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() { |