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

Unified Diff: remoting/protocol/me2me_host_authenticator_factory.cc

Issue 9332017: Remove V1 authenticator support from Me2Me host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | « no previous file | no next file » | 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 9a6f60bf29509dc012c84e34b030a7f2138ca05c..5aa93cd039b08a467e3e291e923469d390dd4466 100644
--- a/remoting/protocol/me2me_host_authenticator_factory.cc
+++ b/remoting/protocol/me2me_host_authenticator_factory.cc
@@ -107,16 +107,9 @@ scoped_ptr<Authenticator> Me2MeHostAuthenticatorFactory::CreateAuthenticator(
return scoped_ptr<Authenticator>(new RejectingAuthenticator());
}
- if (NegotiatingAuthenticator::IsNegotiableMessage(first_message)) {
- return NegotiatingAuthenticator::CreateForHost(
- local_cert_, *local_private_key_, shared_secret_hash_.value,
- shared_secret_hash_.hash_function);
- }
-
- // TODO(sergeyu): Old clients still use V1 auth protocol. Remove
- // this once we are done migrating to V2. crbug.com/110483 .
- return scoped_ptr<Authenticator>(new V1HostAuthenticator(
- local_cert_, *local_private_key_, "", remote_jid));
+ return NegotiatingAuthenticator::CreateForHost(
+ local_cert_, *local_private_key_, shared_secret_hash_.value,
+ shared_secret_hash_.hash_function);
Jamie 2012/02/06 21:03:45 I take it that IsNegotiableMessage was being used
}
} // namespace protocol
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698