Index: remoting/protocol/secure_channel_factory.cc |
diff --git a/remoting/protocol/secure_channel_factory.cc b/remoting/protocol/secure_channel_factory.cc |
index abfd178343034b617b5112ab66543fbe7ffdb235..a07279596887c0936a3b428df3d16c634680e9f3 100644 |
--- a/remoting/protocol/secure_channel_factory.cc |
+++ b/remoting/protocol/secure_channel_factory.cc |
@@ -59,7 +59,7 @@ void SecureChannelFactory::OnBaseChannelCreated( |
authenticator_->CreateChannelAuthenticator().release(); |
channel_authenticators_[name] = channel_authenticator; |
channel_authenticator->SecureAndAuthenticate( |
- socket.Pass(), |
+ std::move(socket), |
base::Bind(&SecureChannelFactory::OnSecureChannelCreated, |
base::Unretained(this), name, callback)); |
} |
@@ -76,7 +76,7 @@ void SecureChannelFactory::OnSecureChannelCreated( |
delete it->second; |
channel_authenticators_.erase(it); |
- callback.Run(socket.Pass()); |
+ callback.Run(std::move(socket)); |
} |
} // namespace protocol |