Index: remoting/host/native_messaging/native_messaging_pipe.cc |
diff --git a/remoting/host/native_messaging/native_messaging_pipe.cc b/remoting/host/native_messaging/native_messaging_pipe.cc |
index 58fc53245608aa71530bc9e28215e9144d18b286..553adaa2f00f202eb4d135bb9ff2d6a4f1bf0613 100644 |
--- a/remoting/host/native_messaging/native_messaging_pipe.cc |
+++ b/remoting/host/native_messaging/native_messaging_pipe.cc |
@@ -20,8 +20,8 @@ NativeMessagingPipe::~NativeMessagingPipe() { |
void NativeMessagingPipe::Start( |
scoped_ptr<extensions::NativeMessageHost> host, |
scoped_ptr<extensions::NativeMessagingChannel> channel) { |
- host_ = host.Pass(); |
- channel_ = channel.Pass(); |
+ host_ = std::move(host); |
+ channel_ = std::move(channel); |
channel_->Start(this); |
} |
@@ -39,7 +39,7 @@ void NativeMessagingPipe::OnDisconnect() { |
void NativeMessagingPipe::PostMessageFromNativeHost( |
const std::string& message) { |
scoped_ptr<base::Value> json = base::JSONReader::Read(message); |
- channel_->SendMessage(json.Pass()); |
+ channel_->SendMessage(std::move(json)); |
} |
void NativeMessagingPipe::CloseChannel(const std::string& error_message) { |