Index: components/scheduler/base/task_queue_manager_unittest.cc |
diff --git a/components/scheduler/base/task_queue_manager_unittest.cc b/components/scheduler/base/task_queue_manager_unittest.cc |
index 21cc6f1de463b25f9c16fcb0110fe3e2d839d8ac..c32c43ecf86c0919fe037d56f6e9c4dccf8a8e3b 100644 |
--- a/components/scheduler/base/task_queue_manager_unittest.cc |
+++ b/components/scheduler/base/task_queue_manager_unittest.cc |
@@ -5,6 +5,7 @@ |
#include "components/scheduler/base/task_queue_manager.h" |
#include <stddef.h> |
+#include <utility> |
#include "base/location.h" |
#include "base/run_loop.h" |
@@ -34,7 +35,7 @@ class MessageLoopTaskRunner : public TaskQueueManagerDelegateForTest { |
public: |
static scoped_refptr<MessageLoopTaskRunner> Create( |
scoped_ptr<base::TickClock> tick_clock) { |
- return make_scoped_refptr(new MessageLoopTaskRunner(tick_clock.Pass())); |
+ return make_scoped_refptr(new MessageLoopTaskRunner(std::move(tick_clock))); |
} |
// NestableTaskRunner implementation. |
@@ -46,7 +47,7 @@ class MessageLoopTaskRunner : public TaskQueueManagerDelegateForTest { |
explicit MessageLoopTaskRunner(scoped_ptr<base::TickClock> tick_clock) |
: TaskQueueManagerDelegateForTest(base::MessageLoop::current() |
->task_runner(), |
- tick_clock.Pass()) {} |
+ std::move(tick_clock)) {} |
~MessageLoopTaskRunner() override {} |
}; |