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

Unified Diff: components/scheduler/child/scheduler_tqm_delegate_for_test.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/child/scheduler_tqm_delegate_for_test.cc
diff --git a/components/scheduler/child/scheduler_tqm_delegate_for_test.cc b/components/scheduler/child/scheduler_tqm_delegate_for_test.cc
index 10e910f3b759a93fe790b1d4a9b41060bf9d8c48..857bb3e47586872814f4803c964afa7fa36cbc73 100644
--- a/components/scheduler/child/scheduler_tqm_delegate_for_test.cc
+++ b/components/scheduler/child/scheduler_tqm_delegate_for_test.cc
@@ -4,6 +4,8 @@
#include "components/scheduler/child/scheduler_tqm_delegate_for_test.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "components/scheduler/base/task_queue_manager_delegate_for_test.h"
@@ -15,7 +17,7 @@ scoped_refptr<SchedulerTqmDelegateForTest> SchedulerTqmDelegateForTest::Create(
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
scoped_ptr<base::TickClock> time_source) {
return make_scoped_refptr(
- new SchedulerTqmDelegateForTest(task_runner, time_source.Pass()));
+ new SchedulerTqmDelegateForTest(task_runner, std::move(time_source)));
}
SchedulerTqmDelegateForTest::SchedulerTqmDelegateForTest(
@@ -23,7 +25,7 @@ SchedulerTqmDelegateForTest::SchedulerTqmDelegateForTest(
scoped_ptr<base::TickClock> time_source)
: task_runner_(
TaskQueueManagerDelegateForTest::Create(task_runner,
- time_source.Pass())) {}
+ std::move(time_source))) {}
SchedulerTqmDelegateForTest::~SchedulerTqmDelegateForTest() {}
« no previous file with comments | « components/scheduler/child/idle_helper_unittest.cc ('k') | components/scheduler/child/scheduler_tqm_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698