summaryrefslogtreecommitdiffstats
path: root/remoting/host/chromoting_host.cc
diff options
context:
space:
mode:
authorsimonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-24 19:02:33 +0000
committersimonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-24 19:02:33 +0000
commitddb9a27cf0e6349d5690681ff0ee80e3e52ca939 (patch)
treeb15950dadf7fe8debcc34c069f862aca482cd3bb /remoting/host/chromoting_host.cc
parent51b97d1c0b787cb4b403d42880a63370b048916c (diff)
downloadchromium_src-ddb9a27cf0e6349d5690681ff0ee80e3e52ca939.zip
chromium_src-ddb9a27cf0e6349d5690681ff0ee80e3e52ca939.tar.gz
chromium_src-ddb9a27cf0e6349d5690681ff0ee80e3e52ca939.tar.bz2
[Chromoting] Make the host notify its status observers on client connection.
This fixes an omission in chromiumcodereview.appspot.com/10408023 BUG=128689 Review URL: https://chromiumcodereview.appspot.com/10432006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138851 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host.cc')
-rw-r--r--remoting/host/chromoting_host.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 38b60a9..5071400 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -230,6 +230,9 @@ void ChromotingHost::OnSessionChannelsConnected(ClientSession* client) {
recorder_->AddConnection(client->connection());
recorder_->Start();
desktop_environment_->OnSessionStarted();
+
+ FOR_EACH_OBSERVER(HostStatusObserver, status_observers_,
+ OnClientConnected(client->client_jid()));
}
void ChromotingHost::OnSessionAuthenticationFailed(ClientSession* client) {