Index: remoting/host/it2me/it2me_native_messaging_host_main.cc |
diff --git a/remoting/host/it2me/it2me_native_messaging_host_main.cc b/remoting/host/it2me/it2me_native_messaging_host_main.cc |
index e0f93490d9cc945e91d60e99124fa8df8c94b680..016266e7bc95b1cd711dc3244d325ea4a84d6729 100644 |
--- a/remoting/host/it2me/it2me_native_messaging_host_main.cc |
+++ b/remoting/host/it2me/it2me_native_messaging_host_main.cc |
@@ -121,17 +121,17 @@ int StartIt2MeNativeMessagingHost() { |
// 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))); |
scoped_ptr<ChromotingHostContext> context = |
ChromotingHostContext::Create(new remoting::AutoThreadTaskRunner( |
message_loop.task_runner(), run_loop.QuitClosure())); |
scoped_ptr<extensions::NativeMessageHost> host( |
- new It2MeNativeMessagingHost(context.Pass(), factory.Pass())); |
+ new It2MeNativeMessagingHost(std::move(context), std::move(factory))); |
host->Start(native_messaging_pipe.get()); |
- native_messaging_pipe->Start(host.Pass(), channel.Pass()); |
+ native_messaging_pipe->Start(std::move(host), std::move(channel)); |
// Run the loop until channel is alive. |
run_loop.Run(); |