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

Unified Diff: chrome/browser/download/download_target_determiner.cc

Issue 351363002: Revert of Port HistoryService::GetVisibleVisitCountToHost to CancelableTaskTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « chrome/browser/download/download_target_determiner.h ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_target_determiner.cc
diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/browser/download/download_target_determiner.cc
index f07def3ca8f337c31d7acf4cd385838c66d43e8a..e7bb16d394091497f29e49249c936900a0a26001 100644
--- a/chrome/browser/download/download_target_determiner.cc
+++ b/chrome/browser/download/download_target_determiner.cc
@@ -47,6 +47,7 @@
// midnight.
void VisitCountsToVisitedBefore(
const base::Callback<void(bool)>& callback,
+ HistoryService::Handle unused_handle,
bool found_visits,
int count,
base::Time first_visit) {
@@ -542,13 +543,10 @@
if (history_service && download_->GetReferrerUrl().is_valid()) {
history_service->GetVisibleVisitCountToHost(
- download_->GetReferrerUrl(),
- base::Bind(
- &VisitCountsToVisitedBefore,
- base::Bind(
- &DownloadTargetDeterminer::CheckVisitedReferrerBeforeDone,
- weak_ptr_factory_.GetWeakPtr())),
- &history_tracker_);
+ download_->GetReferrerUrl(), &history_consumer_,
+ base::Bind(&VisitCountsToVisitedBefore, base::Bind(
+ &DownloadTargetDeterminer::CheckVisitedReferrerBeforeDone,
+ weak_ptr_factory_.GetWeakPtr())));
return QUIT_DOLOOP;
}
}
« no previous file with comments | « chrome/browser/download/download_target_determiner.h ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698