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

Unified Diff: remoting/signaling/log_to_server.cc

Issue 2911893003: Deprecate NonThreadSafe in remoting in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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 | « remoting/signaling/log_to_server.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/log_to_server.cc
diff --git a/remoting/signaling/log_to_server.cc b/remoting/signaling/log_to_server.cc
index 5e05acec5ec6ea0759e6f98675e38d61d4c31f73..97f89890f73211c6db64432bd0c0653bbab1f9dc 100644
--- a/remoting/signaling/log_to_server.cc
+++ b/remoting/signaling/log_to_server.cc
@@ -27,11 +27,12 @@ LogToServer::LogToServer(ServerLogEntry::Mode mode,
}
LogToServer::~LogToServer() {
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
signal_strategy_->RemoveListener(this);
}
void LogToServer::OnSignalStrategyStateChange(SignalStrategy::State state) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (state == SignalStrategy::CONNECTED) {
iq_sender_.reset(new IqSender(signal_strategy_));
« no previous file with comments | « remoting/signaling/log_to_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698