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

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
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/client_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index ede2f9c457e9e296262fd42f4f0ff6eab2053552..d12a5ed2b0238e60e0105a5590b333ab0af57a27 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -296,11 +296,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).
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/client_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698