Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: remoting/host/chromoting_host.cc

Issue 3153029: Resubmit r56600 - Start/stop service process when browser starts and stop (Closed)
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/in_process_browser_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/chromoting_host.h" 5 #include "remoting/host/chromoting_host.h"
6 6
7 #include "base/stl_util-inl.h" 7 #include "base/stl_util-inl.h"
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "remoting/base/constants.h" 10 #include "remoting/base/constants.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // Disconnect all clients. 248 // Disconnect all clients.
249 if (client_) { 249 if (client_) {
250 client_->Disconnect(); 250 client_->Disconnect();
251 } 251 }
252 252
253 // Disconnect from the talk network. 253 // Disconnect from the talk network.
254 if (jingle_client_) { 254 if (jingle_client_) {
255 jingle_client_->Close(); 255 jingle_client_->Close();
256 } 256 }
257 257
258 // Stop the heartbeat sender.
259 if (heartbeat_sender_) {
260 heartbeat_sender_->Stop();
261 }
262
258 // Lastly call the shutdown task. 263 // Lastly call the shutdown task.
259 if (shutdown_task_.get()) { 264 if (shutdown_task_.get()) {
260 shutdown_task_->Run(); 265 shutdown_task_->Run();
261 } 266 }
262 } 267 }
263 268
264 } // namespace remoting 269 } // namespace remoting
OLDNEW
« no previous file with comments | « chrome/test/in_process_browser_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698