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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc

Issue 351553004: Port HistoryService::GetVisibleVisitCountToHost to CancelableTaskTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Linux ASAN tests 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/safe_browsing/safe_browsing_blocking_page.h ('k') | chrome/browser/ssl/ssl_blocking_page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
index 5875cb377e678d39fd49a2bf552b971cc9147f5c..81c3f2a116fdd9cee692ebffd320a0c4f6fadf70 100644
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
@@ -286,9 +286,9 @@ SafeBrowsingBlockingPage::SafeBrowsingBlockingPage(
if (history_service) {
history_service->GetVisibleVisitCountToHost(
url_,
- &request_consumer_,
base::Bind(&SafeBrowsingBlockingPage::OnGotHistoryCount,
- base::Unretained(this)));
+ base::Unretained(this)),
+ &request_tracker_);
}
if (!is_main_frame_load_blocked_) {
@@ -594,8 +594,7 @@ void SafeBrowsingBlockingPage::OnDontProceed() {
}
}
-void SafeBrowsingBlockingPage::OnGotHistoryCount(HistoryService::Handle handle,
- bool success,
+void SafeBrowsingBlockingPage::OnGotHistoryCount(bool success,
int num_visits,
base::Time first_visit) {
if (success)
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page.h ('k') | chrome/browser/ssl/ssl_blocking_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698