Index: remoting/host/chromoting_host.cc |
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc |
index c615528061c1e4d02844d40390fa40b419aed6b3..98a2a6ce357de57764febe7d43c4bb9c7e7156c0 100644 |
--- a/remoting/host/chromoting_host.cc |
+++ b/remoting/host/chromoting_host.cc |
@@ -493,6 +493,11 @@ void ChromotingHost::LocalLoginSucceeded( |
// Immediately add the connection and start the session. |
recorder_->AddConnection(connection); |
recorder_->Start(); |
+ // Notify observers that there is at least one authenticated client. |
+ for (StatusObserverList::iterator it = status_observers_.begin(); |
+ it != status_observers_.end(); ++it) { |
+ (*it)->OnClientAuthenticated(connection); |
+ } |
// TODO(jamiewalch): Tidy up actions to be taken on connect/disconnect, |
// including closing the connection on failure of a critical operation. |
EnableCurtainMode(true); |
@@ -503,12 +508,6 @@ void ChromotingHost::LocalLoginSucceeded( |
username.replace(pos, std::string::npos, ""); |
desktop_environment_->OnConnect(username); |
} |
- |
- // Notify observers that there is at least one authenticated client. |
- for (StatusObserverList::iterator it = status_observers_.begin(); |
- it != status_observers_.end(); ++it) { |
- (*it)->OnClientAuthenticated(connection); |
- } |
} |
void ChromotingHost::LocalLoginFailed( |