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

Unified Diff: remoting/protocol/me2me_host_authenticator_factory.cc

Issue 9150014: Cleanup AuthenticatorFactory implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged 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
« no previous file with comments | « remoting/protocol/me2me_host_authenticator_factory.h ('k') | remoting/protocol/v1_authenticator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/me2me_host_authenticator_factory.cc
diff --git a/remoting/protocol/me2me_host_authenticator_factory.cc b/remoting/protocol/me2me_host_authenticator_factory.cc
index 1b3bf90e8aaa9648f7dfc7cb2389c48282c9ef93..758f531f4df0d1498b1953bfb5af8575a2cf064c 100644
--- a/remoting/protocol/me2me_host_authenticator_factory.cc
+++ b/remoting/protocol/me2me_host_authenticator_factory.cc
@@ -15,10 +15,10 @@ namespace protocol {
Me2MeHostAuthenticatorFactory::Me2MeHostAuthenticatorFactory(
const std::string& local_jid,
const std::string& local_cert,
- const crypto::RSAPrivateKey* local_private_key,
+ const crypto::RSAPrivateKey& local_private_key,
const std::string& shared_secret)
: local_cert_(local_cert),
- local_private_key_(local_private_key->Copy()),
+ local_private_key_(local_private_key.Copy()),
shared_secret_(shared_secret) {
// Verify that |local_jid| is bare.
DCHECK_EQ(local_jid.find('/'), std::string::npos);
@@ -55,7 +55,7 @@ Authenticator* Me2MeHostAuthenticatorFactory::CreateAuthenticator(
// TODO(sergeyu): Old clients still use V1 auth protocol. Remove
// this once we are done migrating to V2.
- return new V1HostAuthenticator(local_cert_, local_private_key_.get(),
+ return new V1HostAuthenticator(local_cert_, *local_private_key_,
shared_secret_, remote_jid);
}
« no previous file with comments | « remoting/protocol/me2me_host_authenticator_factory.h ('k') | remoting/protocol/v1_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698