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

Unified Diff: base/task_runner_util.h

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/cancelable_task_tracker_unittest.cc ('k') | base/task_scheduler/delayed_task_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_runner_util.h
diff --git a/base/task_runner_util.h b/base/task_runner_util.h
index 7fda07624da08294153279f568cecc5c0b45541d..9196bf17a16f88e9992b48259ea0e22b8e0b51f8 100644
--- a/base/task_runner_util.h
+++ b/base/task_runner_util.h
@@ -39,10 +39,11 @@ bool PostTaskAndReplyWithResult(TaskRunner* task_runner,
DCHECK(reply);
TaskReturnType* result = new TaskReturnType();
return task_runner->PostTaskAndReply(
- from_here, base::Bind(&internal::ReturnAsParamAdapter<TaskReturnType>,
- std::move(task), result),
- base::Bind(&internal::ReplyAdapter<TaskReturnType, ReplyArgType>,
- std::move(reply), base::Owned(result)));
+ from_here,
+ base::BindOnce(&internal::ReturnAsParamAdapter<TaskReturnType>,
+ std::move(task), result),
+ base::BindOnce(&internal::ReplyAdapter<TaskReturnType, ReplyArgType>,
+ std::move(reply), base::Owned(result)));
}
} // namespace base
« no previous file with comments | « base/task/cancelable_task_tracker_unittest.cc ('k') | base/task_scheduler/delayed_task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698