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

Unified Diff: base/task_scheduler/test_task_factory.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/task_scheduler/task_unittest.cc ('k') | base/test/launcher/test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/test_task_factory.cc
diff --git a/base/task_scheduler/test_task_factory.cc b/base/task_scheduler/test_task_factory.cc
index 3b4e7235f0128fdcf84f00508736cebbb3336b8f..8db2042e05c94dd813ad4a3ed2b7bfc00a4299a4 100644
--- a/base/task_scheduler/test_task_factory.cc
+++ b/base/task_scheduler/test_task_factory.cc
@@ -37,8 +37,8 @@ bool TestTaskFactory::PostTask(PostNestedTask post_nested_task,
AutoLock auto_lock(lock_);
return task_runner_->PostTask(
FROM_HERE,
- Bind(&TestTaskFactory::RunTaskCallback, Unretained(this),
- num_posted_tasks_++, post_nested_task, after_task_closure));
+ BindOnce(&TestTaskFactory::RunTaskCallback, Unretained(this),
+ num_posted_tasks_++, post_nested_task, after_task_closure));
}
void TestTaskFactory::WaitForAllTasksToRun() const {
« no previous file with comments | « base/task_scheduler/task_unittest.cc ('k') | base/test/launcher/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698