Index: remoting/protocol/v1_authenticator.cc |
diff --git a/remoting/protocol/v1_authenticator.cc b/remoting/protocol/v1_authenticator.cc |
index 5811eff0aa9f9bcf960ff3a5a997d53408dd6be8..4dacd1c6b88639a603322ba7f68954474694d61e 100644 |
--- a/remoting/protocol/v1_authenticator.cc |
+++ b/remoting/protocol/v1_authenticator.cc |
@@ -81,7 +81,7 @@ V1ClientAuthenticator::CreateChannelAuthenticator() const { |
SslHmacChannelAuthenticator::CreateForClient( |
remote_cert_, shared_secret_); |
result->SetLegacyOneWayMode(SslHmacChannelAuthenticator::SEND_ONLY); |
- return scoped_ptr<ChannelAuthenticator>(result.Pass()); |
+ return result.PassAs<ChannelAuthenticator>(); |
}; |
V1HostAuthenticator::V1HostAuthenticator( |
@@ -141,7 +141,7 @@ V1HostAuthenticator::CreateChannelAuthenticator() const { |
SslHmacChannelAuthenticator::CreateForHost( |
local_cert_, local_private_key_.get(), shared_secret_); |
result->SetLegacyOneWayMode(SslHmacChannelAuthenticator::RECEIVE_ONLY); |
- return scoped_ptr<ChannelAuthenticator>(result.Pass()); |
+ return result.PassAs<ChannelAuthenticator>(); |
}; |
} // namespace remoting |