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

Side by Side Diff: mojo/edk/test/scoped_ipc_support.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: no-media 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 "mojo/edk/test/scoped_ipc_support.h" 5 #include "mojo/edk/test/scoped_ipc_support.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 "mojo/edk/embedder/embedder.h" 10 #include "mojo/edk/embedder/embedder.h"
9 11
10 namespace mojo { 12 namespace mojo {
11 namespace edk { 13 namespace edk {
12 namespace test { 14 namespace test {
13 15
14 namespace internal { 16 namespace internal {
15 17
16 ScopedIPCSupportHelper::ScopedIPCSupportHelper() { 18 ScopedIPCSupportHelper::ScopedIPCSupportHelper() {
(...skipping 17 matching lines...) Expand all
34 } 36 }
35 37
36 void ScopedIPCSupportHelper::OnShutdownCompleteImpl() { 38 void ScopedIPCSupportHelper::OnShutdownCompleteImpl() {
37 run_loop_.Quit(); 39 run_loop_.Quit();
38 } 40 }
39 41
40 } // namespace internal 42 } // namespace internal
41 43
42 ScopedIPCSupport::ScopedIPCSupport( 44 ScopedIPCSupport::ScopedIPCSupport(
43 scoped_refptr<base::TaskRunner> io_thread_task_runner) { 45 scoped_refptr<base::TaskRunner> io_thread_task_runner) {
44 helper_.Init(this, io_thread_task_runner.Pass()); 46 helper_.Init(this, std::move(io_thread_task_runner));
45 } 47 }
46 48
47 ScopedIPCSupport::~ScopedIPCSupport() { 49 ScopedIPCSupport::~ScopedIPCSupport() {
48 } 50 }
49 51
50 void ScopedIPCSupport::OnShutdownComplete() { 52 void ScopedIPCSupport::OnShutdownComplete() {
51 helper_.OnShutdownCompleteImpl(); 53 helper_.OnShutdownCompleteImpl();
52 } 54 }
53 55
54 } // namespace test 56 } // namespace test
55 } // namespace edk 57 } // namespace edk
56 } // namespace mojo 58 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/shared_buffer_dispatcher.cc ('k') | mojo/public/cpp/bindings/lib/bindings_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698