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

Unified Diff: chrome/browser/policy/cloud/test_request_interceptor.cc

Issue 2826843004: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/policy (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/policy/cloud/test_request_interceptor.cc
diff --git a/chrome/browser/policy/cloud/test_request_interceptor.cc b/chrome/browser/policy/cloud/test_request_interceptor.cc
index 53ee897e722764e70f027f5f8602e780df827515..40e42f50b142386a12e9f0ebfc96ed8e90b7e5fa 100644
--- a/chrome/browser/policy/cloud/test_request_interceptor.cc
+++ b/chrome/browser/policy/cloud/test_request_interceptor.cc
@@ -232,8 +232,8 @@ net::URLRequestJob* TestRequestInterceptor::Delegate::MaybeInterceptRequest(
new std::vector<base::Closure>);
callbacks->swap(request_serviced_callbacks_);
io_task_runner_->PostTask(
- FROM_HERE, base::Bind(&Delegate::InvokeRequestServicedCallbacks,
- base::Passed(&callbacks)));
+ FROM_HERE, base::BindOnce(&Delegate::InvokeRequestServicedCallbacks,
+ base::Passed(&callbacks)));
}
JobCallback callback = pending_job_callbacks_.front();
@@ -344,12 +344,9 @@ void TestRequestInterceptor::PostToIOAndWait(const base::Closure& task) {
io_task_runner_->PostTask(FROM_HERE, task);
base::RunLoop run_loop;
io_task_runner_->PostTask(
- FROM_HERE,
- base::Bind(
- base::IgnoreResult(&base::TaskRunner::PostTask),
- base::ThreadTaskRunnerHandle::Get(),
- FROM_HERE,
- run_loop.QuitClosure()));
+ FROM_HERE, base::BindOnce(base::IgnoreResult(&base::TaskRunner::PostTask),
+ base::ThreadTaskRunnerHandle::Get(), FROM_HERE,
+ run_loop.QuitClosure()));
run_loop.Run();
}

Powered by Google App Engine
This is Rietveld 408576698