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

Unified Diff: components/history/core/browser/history_service.cc

Issue 1908443003: Set site engagement timestamps to privacy-respectful values when history is cleared. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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/history/core/browser/history_service.h ('k') | components/history/core/browser/history_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/history_service.cc
diff --git a/components/history/core/browser/history_service.cc b/components/history/core/browser/history_service.cc
index 126322abf4776baf2b1d80900d9bb045f2b2a770..557a1693c0b450705bc1cd45eaddf6c503076515 100644
--- a/components/history/core/browser/history_service.cc
+++ b/components/history/core/browser/history_service.cc
@@ -368,15 +368,16 @@ void HistoryService::TopHosts(size_t num_hosts,
callback);
}
-void HistoryService::GetCountsForOrigins(
+void HistoryService::GetCountsAndLastVisitForOrigins(
const std::set<GURL>& origins,
- const GetCountsForOriginsCallback& callback) const {
+ const GetCountsAndLastVisitForOriginsCallback& callback) const {
DCHECK(thread_) << "History service being called after cleanup";
DCHECK(thread_checker_.CalledOnValidThread());
- PostTaskAndReplyWithResult(thread_->task_runner().get(), FROM_HERE,
- base::Bind(&HistoryBackend::GetCountsForOrigins,
- history_backend_.get(), origins),
- callback);
+ PostTaskAndReplyWithResult(
+ thread_->task_runner().get(), FROM_HERE,
+ base::Bind(&HistoryBackend::GetCountsAndLastVisitForOrigins,
+ history_backend_.get(), origins),
+ callback);
}
void HistoryService::HostRankIfAvailable(
« no previous file with comments | « components/history/core/browser/history_service.h ('k') | components/history/core/browser/history_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698