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

Unified Diff: components/scheduler/child/idle_helper_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/child/idle_helper_unittest.cc
diff --git a/components/scheduler/child/idle_helper_unittest.cc b/components/scheduler/child/idle_helper_unittest.cc
index 2269a07693c1a9dbb4e806060b5d8e80b36ebbe1..03b04474349b810db0704f0e312907c9e59da6f7 100644
--- a/components/scheduler/child/idle_helper_unittest.cc
+++ b/components/scheduler/child/idle_helper_unittest.cc
@@ -4,6 +4,8 @@
#include "components/scheduler/child/idle_helper.h"
+#include <utility>
+
#include "base/callback.h"
#include "base/macros.h"
#include "base/test/simple_test_tick_clock.h"
@@ -134,10 +136,10 @@ scoped_refptr<SchedulerTqmDelegate> CreateTaskRunnerDelegate(
scoped_ptr<TestTimeSource> test_time_source) {
if (message_loop)
return SchedulerTqmDelegateImpl::Create(message_loop,
- test_time_source.Pass());
+ std::move(test_time_source));
return SchedulerTqmDelegateForTest::Create(mock_task_runner,
- test_time_source.Pass());
+ std::move(test_time_source));
}
}; // namespace

Powered by Google App Engine
This is Rietveld 408576698