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

Unified Diff: base/test/scoped_task_scheduler.cc

Issue 2791243002: Rewrite base::Bind into base::BindOnce on trivial cases in base (Closed)
Patch Set: Created 3 years, 9 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: base/test/scoped_task_scheduler.cc
diff --git a/base/test/scoped_task_scheduler.cc b/base/test/scoped_task_scheduler.cc
index 7bdf05762822ba2473c16408ade3e7d89be22c75..da94820915e4694b1a7b32708d6515a8aa35b097 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);
}

Powered by Google App Engine
This is Rietveld 408576698