Index: base/threading/post_task_and_reply_impl_unittest.cc |
diff --git a/base/threading/post_task_and_reply_impl_unittest.cc b/base/threading/post_task_and_reply_impl_unittest.cc |
index 13d5cc98401e02df726cc8e76181f0576b398eb8..2e8fc44291b0eab156d05bf20268bafb4f1eae83 100644 |
--- a/base/threading/post_task_and_reply_impl_unittest.cc |
+++ b/base/threading/post_task_and_reply_impl_unittest.cc |
@@ -4,6 +4,8 @@ |
#include "base/threading/post_task_and_reply_impl.h" |
+#include <utility> |
+ |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
#include "base/macros.h" |
@@ -27,8 +29,8 @@ class PostTaskAndReplyTaskRunner : public internal::PostTaskAndReplyImpl { |
private: |
bool PostTask(const tracked_objects::Location& from_here, |
- const Closure& task) override { |
- return destination_->PostTask(from_here, task); |
+ Closure task) override { |
+ return destination_->PostTask(from_here, std::move(task)); |
} |
// Non-owning. |