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

Unified Diff: base/test/scoped_task_scheduler.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/scoped_mock_time_message_loop_task_runner.cc ('k') | base/test/scoped_task_scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/scoped_task_scheduler.cc
diff --git a/base/test/scoped_task_scheduler.cc b/base/test/scoped_task_scheduler.cc
index 4020e0e82a36df6f8d76229b473d4e615bbe280a..3c5b0e2fc7807a6b14ecddd640109a46c26aa417 100644
--- a/base/test/scoped_task_scheduler.cc
+++ b/base/test/scoped_task_scheduler.cc
@@ -236,8 +236,9 @@ bool TestTaskScheduler::PostTask(std::unique_ptr<internal::Task> task,
return false;
internal::Task* const task_ptr = task.get();
return MessageLoopTaskRunner()->PostDelayedTask(
- task_ptr->posted_from, Bind(&TestTaskScheduler::RunTask, Unretained(this),
- Passed(&task), sequence_token),
+ task_ptr->posted_from,
+ BindOnce(&TestTaskScheduler::RunTask, Unretained(this), Passed(&task),
+ sequence_token),
task_ptr->delay);
}
« no previous file with comments | « base/test/scoped_mock_time_message_loop_task_runner.cc ('k') | base/test/scoped_task_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698