Index: remoting/host/chromoting_host.cc |
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc |
index d4d75ec308c7f7105d1a0a17cc1ecf9a56d74619..63ac7bcce22641458c131c3d495da68fa86e6193 100644 |
--- a/remoting/host/chromoting_host.cc |
+++ b/remoting/host/chromoting_host.cc |
@@ -173,7 +173,7 @@ void ChromotingHost::OnSessionAuthenticated(ClientSession* client) { |
recorder_->Start(); |
// Notify observers that there is at least one authenticated client. |
- const std::string& jid = client->connection()->session()->jid(); |
+ const std::string& jid = client->client_jid(); |
reject_authenticating_client_ = false; |
@@ -192,7 +192,7 @@ void ChromotingHost::OnSessionAuthenticationFailed(ClientSession* client) { |
// Notify observers. |
FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, |
- OnAccessDenied()); |
+ OnAccessDenied(client->client_jid())); |
} |
void ChromotingHost::OnSessionClosed(ClientSession* client) { |