Index: remoting/client/chromoting_client.cc |
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc |
index 87a7fe0fb16257c9b51d19c884e7d80992ed6879..327afa067dfa04bc9d65367bcc9acbc7e6b02725 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 |