Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: components/ntp_snippets/content_suggestions_service.cc

Issue 2605353004: [NTP::SectionOrder] Preserve added categories on ClearHistory. (Closed)
Patch Set: rebase. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6469882b963e3b90cad774a0cb7932b5247179d4..712589a8297f9c49e14420bfd00713d07fc46b91 100644
--- a/components/ntp_snippets/content_suggestions_service.cc
+++ b/components/ntp_snippets/content_suggestions_service.cc
@@ -130,6 +130,7 @@ void ContentSuggestionsService::ClearHistory(
for (const auto& provider : providers_) {
provider->ClearHistory(begin, end, filter);
}
+ category_ranker_->ClearHistory(begin, end);
}
void ContentSuggestionsService::ClearAllCachedSuggestions() {
« no previous file with comments | « components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698