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

Unified Diff: third_party/mojo/src/mojo/edk/system/ipc_support.cc

Issue 1545333002: Convert Pass()→std::move() in //third_party/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: third_party/mojo/src/mojo/edk/system/ipc_support.cc
diff --git a/third_party/mojo/src/mojo/edk/system/ipc_support.cc b/third_party/mojo/src/mojo/edk/system/ipc_support.cc
index 173857814218892fa646c101bf819dbb6088e765..26a551193c36f2ebc2a6331753a6f97d748ba76d 100644
--- a/third_party/mojo/src/mojo/edk/system/ipc_support.cc
+++ b/third_party/mojo/src/mojo/edk/system/ipc_support.cc
@@ -49,7 +49,7 @@ IPCSupport::IPCSupport(embedder::PlatformSupport* platform_support,
static_cast<system::SlaveConnectionManager*>(connection_manager_.get())
->Init(
static_cast<embedder::SlaveProcessDelegate*>(process_delegate_),
- platform_handle.Pass());
+ std::move(platform_handle));
break;
}
@@ -96,10 +96,10 @@ scoped_refptr<system::MessagePipeDispatcher> IPCSupport::ConnectToSlave(
"ChannelId and ProcessIdentifier types don't match");
embedder::ScopedPlatformHandle platform_connection_handle =
- ConnectToSlaveInternal(connection_id, slave_info, platform_handle.Pass(),
- channel_id);
+ ConnectToSlaveInternal(connection_id, slave_info,
+ std::move(platform_handle), channel_id);
return channel_manager()->CreateChannel(
- *channel_id, platform_connection_handle.Pass(), callback,
+ *channel_id, std::move(platform_connection_handle), callback,
callback_thread_task_runner);
}
@@ -117,7 +117,7 @@ scoped_refptr<system::MessagePipeDispatcher> IPCSupport::ConnectToMaster(
ConnectToMasterInternal(connection_id);
*channel_id = kMasterProcessIdentifier;
return channel_manager()->CreateChannel(
- *channel_id, platform_connection_handle.Pass(), callback,
+ *channel_id, std::move(platform_connection_handle), callback,
callback_thread_task_runner);
}
@@ -131,7 +131,7 @@ embedder::ScopedPlatformHandle IPCSupport::ConnectToSlaveInternal(
*slave_process_identifier =
static_cast<system::MasterConnectionManager*>(connection_manager())
- ->AddSlaveAndBootstrap(slave_info, platform_handle.Pass(),
+ ->AddSlaveAndBootstrap(slave_info, std::move(platform_handle),
connection_id);
system::ProcessIdentifier peer_id = system::kInvalidProcessIdentifier;
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/endpoint_relayer.cc ('k') | third_party/mojo/src/mojo/edk/system/ipc_support_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698