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

Unified Diff: remoting/host/setup/me2me_native_messaging_host_main.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
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: remoting/host/setup/me2me_native_messaging_host_main.cc
diff --git a/remoting/host/setup/me2me_native_messaging_host_main.cc b/remoting/host/setup/me2me_native_messaging_host_main.cc
index bfc943e57cfcb334038e624781344ca83623d07d..9a8acbd0f8d1f1fd9e3aca9a28a0bae97bc6d257 100644
--- a/remoting/host/setup/me2me_native_messaging_host_main.cc
+++ b/remoting/host/setup/me2me_native_messaging_host_main.cc
@@ -245,7 +245,7 @@ int StartMe2MeNativeMessagingHost() {
return kInitializationFailed;
pairing_registry =
- new PairingRegistry(io_thread.task_runner(), delegate.Pass());
+ new PairingRegistry(io_thread.task_runner(), std::move(delegate));
#else // defined(OS_WIN)
pairing_registry =
CreatePairingRegistry(io_thread.task_runner());
@@ -253,17 +253,13 @@ int StartMe2MeNativeMessagingHost() {
// Set up the native messaging channel.
scoped_ptr<extensions::NativeMessagingChannel> channel(
- new PipeMessagingChannel(read_file.Pass(), write_file.Pass()));
+ new PipeMessagingChannel(std::move(read_file), std::move(write_file)));
// Create the native messaging host.
- scoped_ptr<Me2MeNativeMessagingHost> host(
- new Me2MeNativeMessagingHost(
- needs_elevation,
- static_cast<intptr_t>(native_view_handle),
- channel.Pass(),
- daemon_controller,
- pairing_registry,
- oauth_client.Pass()));
+ scoped_ptr<Me2MeNativeMessagingHost> host(new Me2MeNativeMessagingHost(
+ needs_elevation, static_cast<intptr_t>(native_view_handle),
+ std::move(channel), daemon_controller, pairing_registry,
+ std::move(oauth_client)));
host->Start(run_loop.QuitClosure());
// Run the loop until channel is alive.

Powered by Google App Engine
This is Rietveld 408576698