Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: components/scheduler/base/task_queue_manager_unittest.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {}
};
« no previous file with comments | « components/scheduler/base/task_queue_manager_delegate_for_test.cc ('k') | components/scheduler/child/idle_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698