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

Unified Diff: remoting/client/chromoting_client.cc

Issue 10453064: Remove V1 authenticators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | remoting/client/client_config.h » ('j') | remoting/client/client_config.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_client.cc
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc
index 4dabdd2cf30fd663e12e7901b9a1c04a7d1365f3..9edb480a61d07bfaad26c0568e885dd670d6192f 100644
--- a/remoting/client/chromoting_client.cc
+++ b/remoting/client/chromoting_client.cc
@@ -11,7 +11,6 @@
#include "remoting/protocol/authentication_method.h"
#include "remoting/protocol/connection_to_host.h"
#include "remoting/protocol/negotiating_authenticator.h"
-#include "remoting/protocol/v1_authenticator.h"
#include "remoting/protocol/session_config.h"
#include "remoting/protocol/transport.h"
@@ -53,14 +52,9 @@ void ChromotingClient::Start(
DCHECK(message_loop()->BelongsToCurrentThread());
scoped_ptr<protocol::Authenticator> authenticator;
- if (config_.use_v1_authenticator) {
- authenticator.reset(new protocol::V1ClientAuthenticator(
- config_.local_jid, config_.shared_secret));
- } else {
- authenticator = protocol::NegotiatingAuthenticator::CreateForClient(
- config_.authentication_tag,
- config_.shared_secret, config_.authentication_methods);
- }
+ authenticator = protocol::NegotiatingAuthenticator::CreateForClient(
+ config_.authentication_tag,
+ config_.shared_secret, config_.authentication_methods);
connection_->Connect(xmpp_proxy, config_.local_jid, config_.host_jid,
config_.host_public_key, transport_factory.Pass(),
« no previous file with comments | « no previous file | remoting/client/client_config.h » ('j') | remoting/client/client_config.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698