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

Side by Side Diff: components/scheduler/child/worker_scheduler.cc

Issue 1477643002: Remove the TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basepass
Patch Set: type-with-move: . 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/scheduler/child/worker_scheduler.h" 5 #include "components/scheduler/child/worker_scheduler.h"
6 6
7 #include <utility>
8
7 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
8 #include "components/scheduler/child/scheduler_tqm_delegate.h" 10 #include "components/scheduler/child/scheduler_tqm_delegate.h"
9 #include "components/scheduler/child/worker_scheduler_impl.h" 11 #include "components/scheduler/child/worker_scheduler_impl.h"
10 12
11 namespace scheduler { 13 namespace scheduler {
12 14
13 WorkerScheduler::WorkerScheduler() { 15 WorkerScheduler::WorkerScheduler() {
14 } 16 }
15 17
16 WorkerScheduler::~WorkerScheduler() { 18 WorkerScheduler::~WorkerScheduler() {
17 } 19 }
18 20
19 // static 21 // static
20 scoped_ptr<WorkerScheduler> WorkerScheduler::Create( 22 scoped_ptr<WorkerScheduler> WorkerScheduler::Create(
21 scoped_refptr<SchedulerTqmDelegate> main_task_runner) { 23 scoped_refptr<SchedulerTqmDelegate> main_task_runner) {
22 return make_scoped_ptr(new WorkerSchedulerImpl(main_task_runner.Pass())); 24 return make_scoped_ptr(new WorkerSchedulerImpl(std::move(main_task_runner)));
23 } 25 }
24 26
25 } // namespace scheduler 27 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698