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

Unified Diff: remoting/protocol/ssl_hmac_channel_authenticator.h

Issue 9240033: Use scoped_ptr<>.Pass() to pass ownership in the remoting protocol code. (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
Index: remoting/protocol/ssl_hmac_channel_authenticator.h
diff --git a/remoting/protocol/ssl_hmac_channel_authenticator.h b/remoting/protocol/ssl_hmac_channel_authenticator.h
index e86e25e6bf7d1bf0dfd58a5aaec92ca61bc414ad..228f08468137ac5588cb44fc3765d19f8ce2e371 100644
--- a/remoting/protocol/ssl_hmac_channel_authenticator.h
+++ b/remoting/protocol/ssl_hmac_channel_authenticator.h
@@ -45,11 +45,11 @@ class SslHmacChannelAuthenticator : public ChannelAuthenticator,
// |auth_key| is set to access code. For EKE-based authentication
// |auth_key| is the key established using EKE over the signaling
// channel.
- static SslHmacChannelAuthenticator* CreateForClient(
+ static scoped_ptr<SslHmacChannelAuthenticator> CreateForClient(
const std::string& remote_cert,
const std::string& auth_key);
- static SslHmacChannelAuthenticator* CreateForHost(
+ static scoped_ptr<SslHmacChannelAuthenticator> CreateForHost(
const std::string& local_cert,
crypto::RSAPrivateKey* local_private_key,
const std::string& auth_key);

Powered by Google App Engine
This is Rietveld 408576698