Chromium Code Reviews| 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 connection_->SetClientAuthenticated(msg->success()); | |
|
Wez
2011/03/04 12:09:38
I'd recommend SetClientAuthenticated(bool) -> if (
garykac
2011/03/04 20:28:02
Done.
| |
| 239 | |
| 236 view_->UpdateLoginStatus(msg->success(), msg->error_info()); | 240 view_->UpdateLoginStatus(msg->success(), msg->error_info()); |
| 237 done->Run(); | 241 done->Run(); |
| 238 delete done; | 242 delete done; |
| 239 } | 243 } |
| 240 | 244 |
| 241 } // namespace remoting | 245 } // namespace remoting |
| OLD | NEW |