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

Unified Diff: remoting/host/chromoting_host.cc

Issue 14520018: Create the desktop environment before any of the channel were connected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 9f7de5613804b7f97250d119805a05965f50761a..653110bd58c07eb944f03919781ab2e603d54f5c 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -181,7 +181,7 @@ void ChromotingHost::SetMaximumSessionDuration(
////////////////////////////////////////////////////////////////////////////
// protocol::ClientSession::EventHandler implementation.
-void ChromotingHost::OnSessionAuthenticated(ClientSession* client) {
+bool ChromotingHost::OnSessionAuthenticated(ClientSession* client) {
DCHECK(network_task_runner_->BelongsToCurrentThread());
login_backoff_.Reset();
@@ -209,9 +209,7 @@ void ChromotingHost::OnSessionAuthenticated(ClientSession* client) {
OnClientAuthenticated(jid));
authenticating_client_ = false;
- if (reject_authenticating_client_) {
- client->DisconnectSession();
- }
+ return !reject_authenticating_client_;
}
void ChromotingHost::OnSessionChannelsConnected(ClientSession* client) {

Powered by Google App Engine
This is Rietveld 408576698