Index: chrome/service/service_ipc_server.cc |
diff --git a/chrome/service/service_ipc_server.cc b/chrome/service/service_ipc_server.cc |
index 978d348ed86be19b2a7bb63a700a109039604bc0..24f7600f6a7203b6d847c5218a069a7e1b090a52 100644 |
--- a/chrome/service/service_ipc_server.cc |
+++ b/chrome/service/service_ipc_server.cc |
@@ -132,13 +132,19 @@ void ServiceIPCServer::OnSetRemotingHostCredentials( |
void ServiceIPCServer::OnEnableRemotingHost() { |
g_service_process->remoting_host_manager()->Enable(); |
+ SendRemotingHostInfo(); |
} |
-void ServiceIPCServer:: OnDisableRemotingHost() { |
+void ServiceIPCServer::OnDisableRemotingHost() { |
g_service_process->remoting_host_manager()->Disable(); |
+ SendRemotingHostInfo(); |
} |
-void ServiceIPCServer:: OnGetRemotingHostInfo() { |
+void ServiceIPCServer::OnGetRemotingHostInfo() { |
+ SendRemotingHostInfo(); |
+} |
+ |
+void ServiceIPCServer::SendRemotingHostInfo() { |
remoting::ChromotingHostInfo host_info; |
g_service_process->remoting_host_manager()->GetHostInfo(&host_info); |
channel_->Send(new ServiceHostMsg_RemotingHost_HostInfo(host_info)); |