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

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

Issue 2821193005: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/safe_browsing (Closed)
Patch Set: Created 3 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
Index: chrome/browser/safe_browsing/client_side_detection_host.cc
diff --git a/chrome/browser/safe_browsing/client_side_detection_host.cc b/chrome/browser/safe_browsing/client_side_detection_host.cc
index b5eb0d72a5f9b65f20e7c93a6bb53d839a949e76..b12aa7d85221d5ccf55ab21453e1658b7bfe4a68 100644
--- a/chrome/browser/safe_browsing/client_side_detection_host.cc
+++ b/chrome/browser/safe_browsing/client_side_detection_host.cc
@@ -133,10 +133,9 @@ class ClientSideDetectionHost::ShouldClassifyUrlRequest
// uses the SafeBrowsing service class.
if (ShouldClassifyForPhishing() || ShouldClassifyForMalware()) {
BrowserThread::PostTask(
- BrowserThread::IO,
- FROM_HERE,
- base::Bind(&ShouldClassifyUrlRequest::CheckSafeBrowsingDatabase,
- this, url_));
+ BrowserThread::IO, FROM_HERE,
+ base::BindOnce(&ShouldClassifyUrlRequest::CheckSafeBrowsingDatabase,
+ this, url_));
}
}
@@ -233,12 +232,9 @@ class ClientSideDetectionHost::ShouldClassifyUrlRequest
}
}
BrowserThread::PostTask(
- BrowserThread::UI,
- FROM_HERE,
- base::Bind(&ShouldClassifyUrlRequest::CheckCache,
- this,
- phishing_reason,
- malware_reason));
+ BrowserThread::UI, FROM_HERE,
+ base::BindOnce(&ShouldClassifyUrlRequest::CheckCache, this,
+ phishing_reason, malware_reason));
}
void CheckCache(PreClassificationCheckFailures phishing_reason,

Powered by Google App Engine
This is Rietveld 408576698