summaryrefslogtreecommitdiff
path: root/base/task_runner.cc
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2017-12-20 18:26:31 +0000
committerMyles Watson <mylesgw@google.com>2017-12-20 18:47:15 +0000
commit70cd4fac31a9b0865dab6574540f70cc103337dc (patch)
treea9d13e0b40d89d8960e80b71a7c21e639ea6c2d5 /base/task_runner.cc
parentbf8c17f71511c1e90cd8cccfe71f0852c566bd3b (diff)
downloadlibchrome-70cd4fac31a9b0865dab6574540f70cc103337dc.tar.gz
Revert "Uprev the library to r462023 from Chromium"
This reverts commit bf8c17f71511c1e90cd8cccfe71f0852c566bd3b. Reason for revert: https://buganizer.corp.google.com/issues/70858501 Change-Id: Iedb1193d46ea2211f8b6fdace41902ad8df6d754
Diffstat (limited to 'base/task_runner.cc')
-rw-r--r--base/task_runner.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/base/task_runner.cc b/base/task_runner.cc
index c3e0574a1b..35c0a23274 100644
--- a/base/task_runner.cc
+++ b/base/task_runner.cc
@@ -23,7 +23,7 @@ class PostTaskAndReplyTaskRunner : public internal::PostTaskAndReplyImpl {
private:
bool PostTask(const tracked_objects::Location& from_here,
- OnceClosure task) override;
+ const Closure& task) override;
// Non-owning.
TaskRunner* destination_;
@@ -36,20 +36,20 @@ PostTaskAndReplyTaskRunner::PostTaskAndReplyTaskRunner(
bool PostTaskAndReplyTaskRunner::PostTask(
const tracked_objects::Location& from_here,
- OnceClosure task) {
- return destination_->PostTask(from_here, std::move(task));
+ const Closure& task) {
+ return destination_->PostTask(from_here, task);
}
} // namespace
bool TaskRunner::PostTask(const tracked_objects::Location& from_here,
- OnceClosure task) {
- return PostDelayedTask(from_here, std::move(task), base::TimeDelta());
+ const Closure& task) {
+ return PostDelayedTask(from_here, task, base::TimeDelta());
}
bool TaskRunner::PostTaskAndReply(const tracked_objects::Location& from_here,
- OnceClosure task,
- OnceClosure reply) {
+ Closure task,
+ Closure reply) {
return PostTaskAndReplyTaskRunner(this).PostTaskAndReply(
from_here, std::move(task), std::move(reply));
}