OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/client/chromoting_client.h" | 5 #include "remoting/client/chromoting_client.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "remoting/base/tracer.h" | 8 #include "remoting/base/tracer.h" |
9 #include "remoting/client/chromoting_view.h" | 9 #include "remoting/client/chromoting_view.h" |
10 #include "remoting/client/client_context.h" | 10 #include "remoting/client/client_context.h" |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 void ChromotingClient::BeginSessionResponse( | 226 void ChromotingClient::BeginSessionResponse( |
227 const protocol::LocalLoginStatus* msg, Task* done) { | 227 const protocol::LocalLoginStatus* msg, Task* done) { |
228 if (message_loop() != MessageLoop::current()) { | 228 if (message_loop() != MessageLoop::current()) { |
229 message_loop()->PostTask( | 229 message_loop()->PostTask( |
230 FROM_HERE, | 230 FROM_HERE, |
231 NewRunnableMethod(this, &ChromotingClient::BeginSessionResponse, | 231 NewRunnableMethod(this, &ChromotingClient::BeginSessionResponse, |
232 msg, done)); | 232 msg, done)); |
233 return; | 233 return; |
234 } | 234 } |
235 | 235 |
| 236 // Inform the connection that the client has been authenticated. This will |
| 237 // enable the communication channels. |
| 238 if (msg->success()) { |
| 239 connection_->OnClientAuthenticated(); |
| 240 } |
| 241 |
236 view_->UpdateLoginStatus(msg->success(), msg->error_info()); | 242 view_->UpdateLoginStatus(msg->success(), msg->error_info()); |
237 done->Run(); | 243 done->Run(); |
238 delete done; | 244 delete done; |
239 } | 245 } |
240 | 246 |
241 } // namespace remoting | 247 } // namespace remoting |
OLD | NEW |