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

Unified Diff: remoting/host/heartbeat_sender.cc

Issue 3110004: Revert 55507 - Start chromoting host in the service process though a method ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/service/service_process_unittest.cc ('k') | remoting/jingle_glue/jingle_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/heartbeat_sender.cc
===================================================================
--- remoting/host/heartbeat_sender.cc (revision 55524)
+++ remoting/host/heartbeat_sender.cc (working copy)
@@ -65,7 +65,7 @@
return;
}
- DCHECK_EQ(INITIALIZED, state_);
+ DCHECK(state_ == INITIALIZED);
state_ = STARTED;
request_.reset(jingle_client_->CreateIqRequest());
@@ -82,9 +82,7 @@
return;
}
- // We may call Stop() even if we have not started.
- if (state_ != STARTED)
- return;
+ DCHECK(state_ == STARTED);
state_ = STOPPED;
request_.reset(NULL);
}
« no previous file with comments | « chrome/service/service_process_unittest.cc ('k') | remoting/jingle_glue/jingle_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698