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

Unified Diff: remoting/host/chromoting_host.cc

Issue 6282006: Add a done task to ScreenRecorder::Stop() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed comments Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/screen_recorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 45be6137a428b45d9568bc07c88af76d82cf83d8..c769d39e11b4fe6539b542bf363f1d6d576a6bbe 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -121,9 +121,9 @@ void ChromotingHost::Shutdown() {
state_ = kStopped;
}
- // Tell the session to pause and then disconnect all clients.
+ // Tell the session to stop and then disconnect all clients.
if (recorder_.get()) {
- recorder_->Pause();
+ recorder_->Stop(NULL);
recorder_->RemoveAllConnections();
}
@@ -182,11 +182,11 @@ void ChromotingHost::OnClientConnected(ConnectionToClient* connection) {
void ChromotingHost::OnClientDisconnected(ConnectionToClient* connection) {
DCHECK_EQ(context_->main_message_loop(), MessageLoop::current());
- // Remove the connection from the session manager and pause the session.
- // TODO(hclam): Pause only if the last connection disconnected.
+ // Remove the connection from the session manager and stop the session.
+ // TODO(hclam): Stop only if the last connection disconnected.
if (recorder_.get()) {
recorder_->RemoveConnection(connection);
- recorder_->Pause();
+ recorder_->Stop(NULL);
}
// Close the connection to connection just to be safe.
« no previous file with comments | « no previous file | remoting/host/screen_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698