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

Unified Diff: remoting/host/client_session.cc

Issue 1458323002: Simplify It2Me host shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 100858996fb2b77cb8afeeb953be6f351c1a4a4a..a97c67c3220363d48dec3cd3abb16074488fe082 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -294,11 +294,8 @@ void ClientSession::OnConnectionAuthenticated(
protocol::MAX_SESSION_LENGTH));
}
- // Disconnect the session if the connection was rejected by the host.
- if (!event_handler_->OnSessionAuthenticated(this)) {
- DisconnectSession(protocol::SESSION_REJECTED);
- return;
- }
+ // Notify EventHandler.
+ event_handler_->OnSessionAuthenticated(this);
// Create the desktop environment. Drop the connection if it could not be
// created for any reason (for instance the curtain could not initialize).

Powered by Google App Engine
This is Rietveld 408576698