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

Unified Diff: remoting/protocol/v1_authenticator.cc

Issue 9283028: Add scoped_ptr<>::PassAs<>(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 11 months 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
« base/memory/scoped_ptr.h ('K') | « remoting/protocol/pepper_session_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« base/memory/scoped_ptr.h ('K') | « remoting/protocol/pepper_session_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698