From e57d57b67290c8dfd701ac5021264a9ae1588b81 Mon Sep 17 00:00:00 2001 From: "hclam@chromium.org" Date: Wed, 18 Aug 2010 21:04:49 +0000 Subject: Start/stop service process when browser starts and stop Save the information that the setup of remoting has completed. After setup has been completed we start and stop service process when --enable-remoting presents when browser starts. Also save the information in the service process that host is registered and ready to be used. Again start chromoting host automatically once the host registration is done. Review URL: http://codereview.chromium.org/3185015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56600 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/host/chromoting_host.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'remoting') diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc index 3e47f54..1bc7b98 100644 --- a/remoting/host/chromoting_host.cc +++ b/remoting/host/chromoting_host.cc @@ -255,6 +255,11 @@ void ChromotingHost::DoShutdown() { jingle_client_->Close(); } + // Stop the heartbeat sender. + if (heartbeat_sender_) { + heartbeat_sender_->Stop(); + } + // Lastly call the shutdown task. if (shutdown_task_.get()) { shutdown_task_->Run(); -- cgit v1.1