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

Unified Diff: base/test/scoped_mock_time_message_loop_task_runner.cc

Issue 2791243002: Rewrite base::Bind into base::BindOnce on trivial cases in base (Closed)
Patch Set: rebase 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
« no previous file with comments | « base/test/launcher/unit_test_launcher.cc ('k') | base/test/scoped_task_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/scoped_mock_time_message_loop_task_runner.cc
diff --git a/base/test/scoped_mock_time_message_loop_task_runner.cc b/base/test/scoped_mock_time_message_loop_task_runner.cc
index 5b1c03faec72dd07f4785989d40522345697dd81..15b07fc46603677746b760b13f179ea7ba6447fb 100644
--- a/base/test/scoped_mock_time_message_loop_task_runner.cc
+++ b/base/test/scoped_mock_time_message_loop_task_runner.cc
@@ -41,7 +41,7 @@ ScopedMockTimeMessageLoopTaskRunner::~ScopedMockTimeMessageLoopTaskRunner() {
// to OnceClosure.
previous_task_runner_->PostDelayedTask(
pending_task.location,
- Bind(&RunOnceClosure, Passed(&pending_task.task)),
+ BindOnce(&RunOnceClosure, Passed(&pending_task.task)),
pending_task.GetTimeToRun() - task_runner_->NowTicks());
}
MessageLoop::current()->SetTaskRunner(std::move(previous_task_runner_));
« no previous file with comments | « base/test/launcher/unit_test_launcher.cc ('k') | base/test/scoped_task_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698