summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 21:04:49 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 21:04:49 +0000
commite57d57b67290c8dfd701ac5021264a9ae1588b81 (patch)
treed419061b3690fd591a87aff809096f120f201d46 /remoting
parent8e303b21eb3e190b420e82a15d5d151bc8df0dd4 (diff)
downloadchromium_src-e57d57b67290c8dfd701ac5021264a9ae1588b81.zip
chromium_src-e57d57b67290c8dfd701ac5021264a9ae1588b81.tar.gz
chromium_src-e57d57b67290c8dfd701ac5021264a9ae1588b81.tar.bz2
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
Diffstat (limited to 'remoting')
-rw-r--r--remoting/host/chromoting_host.cc5
1 files changed, 5 insertions, 0 deletions
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();