diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-05 01:19:27 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-05 01:19:27 +0000 |
commit | 5a5fdc08c1ae8fdfce391f1a17c5fbb6097ab280 (patch) | |
tree | 9d596e4c66ad4390611bfd0ab1f4852a41687c55 /remoting/client/chromoting_client.cc | |
parent | e37a725dfeef3effedd02eece32523413bbfae0f (diff) | |
download | chromium_src-5a5fdc08c1ae8fdfce391f1a17c5fbb6097ab280.zip chromium_src-5a5fdc08c1ae8fdfce391f1a17c5fbb6097ab280.tar.gz chromium_src-5a5fdc08c1ae8fdfce391f1a17c5fbb6097ab280.tar.bz2 |
Remove old Authentication code that we don't use or need.
Also removed some auth-related protobufs that we don't currenly use.
BUG=None
TEST=IT2Me still works.
Review URL: http://codereview.chromium.org/8351084
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108759 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/chromoting_client.cc')
-rw-r--r-- | remoting/client/chromoting_client.cc | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc index 87a7fe0..327afa0 100644 --- a/remoting/client/chromoting_client.cc +++ b/remoting/client/chromoting_client.cc @@ -155,7 +155,8 @@ void ChromotingClient::OnConnectionState( protocol::ConnectionToHost::Error error) { DCHECK(message_loop()->BelongsToCurrentThread()); VLOG(1) << "ChromotingClient::OnConnectionState(" << state << ")"; - if (state == protocol::ConnectionToHost::CONNECTED) + if (state == protocol::ConnectionToHost::CONNECTED || + state == protocol::ConnectionToHost::AUTHENTICATED) Initialize(); view_->SetConnectionState(state, error); } @@ -203,27 +204,4 @@ void ChromotingClient::Initialize() { input_handler_->Initialize(); } -//////////////////////////////////////////////////////////////////////////// -// ClientStub control channel interface. -void ChromotingClient::BeginSessionResponse( - const protocol::LocalLoginStatus* msg, const base::Closure& done) { - if (!message_loop()->BelongsToCurrentThread()) { - thread_proxy_.PostTask(FROM_HERE, base::Bind( - &ChromotingClient::BeginSessionResponse, base::Unretained(this), - msg, done)); - return; - } - - VLOG(1) << "BeginSessionResponse received"; - - // Inform the connection that the client has been authenticated. This will - // enable the communication channels. - if (msg->success()) { - connection_->OnClientAuthenticated(); - } - - view_->UpdateLoginStatus(msg->success(), msg->error_info()); - done.Run(); -} - } // namespace remoting |