Index: base/task_runner.cc |
diff --git a/base/task_runner.cc b/base/task_runner.cc |
index 35c0a23274a4fc7e72953912180d714ee6101826..8502510eb06a5d597e8e4dfd754ccd213c2b7d87 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, |
- const Closure& task) override; |
+ Closure task) override; |
// Non-owning. |
TaskRunner* destination_; |
@@ -36,15 +36,15 @@ PostTaskAndReplyTaskRunner::PostTaskAndReplyTaskRunner( |
bool PostTaskAndReplyTaskRunner::PostTask( |
const tracked_objects::Location& from_here, |
- const Closure& task) { |
- return destination_->PostTask(from_here, task); |
+ Closure task) { |
+ return destination_->PostTask(from_here, std::move(task)); |
} |
} // namespace |
bool TaskRunner::PostTask(const tracked_objects::Location& from_here, |
- const Closure& task) { |
- return PostDelayedTask(from_here, task, base::TimeDelta()); |
+ Closure task) { |
+ return PostDelayedTask(from_here, std::move(task), base::TimeDelta()); |
} |
bool TaskRunner::PostTaskAndReply(const tracked_objects::Location& from_here, |