Index: base/test/test_pending_task.cc |
diff --git a/base/test/test_pending_task.cc b/base/test/test_pending_task.cc |
index 98bc0179b8e0b91a4734f80d5c566a12bf13225e..63bdfffacd681bdc67a985d42e660fe6c361573f 100644 |
--- a/base/test/test_pending_task.cc |
+++ b/base/test/test_pending_task.cc |
@@ -2,22 +2,22 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include <string> |
- |
#include "base/test/test_pending_task.h" |
+#include <string> |
+#include <utility> |
+ |
namespace base { |
TestPendingTask::TestPendingTask() : nestability(NESTABLE) {} |
-TestPendingTask::TestPendingTask( |
- const tracked_objects::Location& location, |
- const Closure& task, |
- TimeTicks post_time, |
- TimeDelta delay, |
- TestNestability nestability) |
+TestPendingTask::TestPendingTask(const tracked_objects::Location& location, |
+ Closure task, |
+ TimeTicks post_time, |
+ TimeDelta delay, |
+ TestNestability nestability) |
: location(location), |
- task(task), |
+ task(std::move(task)), |
post_time(post_time), |
delay(delay), |
nestability(nestability) {} |