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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.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/safe_browsing_service.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index 3fafd011bc34dd2983ddc63ead74be952595a701..51461b696c212a923c259fa24c4264ee354e793d 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -366,8 +366,8 @@ void SafeBrowsingService::ShutDown() {
// new requests from using it as well.
BrowserThread::PostNonNestableTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&SafeBrowsingURLRequestContextGetter::ServiceShuttingDown,
- url_request_context_getter_));
+ base::BindOnce(&SafeBrowsingURLRequestContextGetter::ServiceShuttingDown,
+ url_request_context_getter_));
// Release the URLRequestContextGetter after passing it to the IOThread. It
// has to be released now rather than in the destructor because it can only
@@ -468,7 +468,7 @@ void SafeBrowsingService::OnResourceRequest(const net::URLRequest* request) {
ResourceRequestInfo info = ResourceRequestDetector::GetRequestInfo(request);
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(&SafeBrowsingService::ProcessResourceRequest, this, info));
+ base::BindOnce(&SafeBrowsingService::ProcessResourceRequest, this, info));
#endif
}
@@ -625,14 +625,14 @@ void SafeBrowsingService::Start() {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&SafeBrowsingService::StartOnIOThread, this,
- base::RetainedRef(url_request_context_getter_)));
+ base::BindOnce(&SafeBrowsingService::StartOnIOThread, this,
+ base::RetainedRef(url_request_context_getter_)));
}
void SafeBrowsingService::Stop(bool shutdown) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&SafeBrowsingService::StopOnIOThread, this, shutdown));
+ base::BindOnce(&SafeBrowsingService::StopOnIOThread, this, shutdown));
}
void SafeBrowsingService::Observe(int type,
@@ -744,8 +744,8 @@ void SafeBrowsingService::SendSerializedDownloadReport(
DCHECK_CURRENTLY_ON(BrowserThread::UI);
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&SafeBrowsingService::OnSendSerializedDownloadReport, this,
- report));
+ base::BindOnce(&SafeBrowsingService::OnSendSerializedDownloadReport, this,
+ report));
}
void SafeBrowsingService::OnSendSerializedDownloadReport(

Powered by Google App Engine
This is Rietveld 408576698