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

Unified Diff: remoting/protocol/ice_connection_to_host.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/protocol/ice_connection_to_host.h ('k') | remoting/protocol/jingle_session_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/ice_connection_to_host.cc
diff --git a/remoting/protocol/ice_connection_to_host.cc b/remoting/protocol/ice_connection_to_host.cc
index 4fa7eae06a6648dc1720ef61a5541169340f140e..be42deaea1e5b2b8c2993ab44f6041db3ef048c9 100644
--- a/remoting/protocol/ice_connection_to_host.cc
+++ b/remoting/protocol/ice_connection_to_host.cc
@@ -28,7 +28,9 @@ namespace remoting {
namespace protocol {
IceConnectionToHost::IceConnectionToHost() {}
-IceConnectionToHost::~IceConnectionToHost() {}
+IceConnectionToHost::~IceConnectionToHost() {
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
+}
void IceConnectionToHost::Connect(
std::unique_ptr<Session> session,
@@ -88,7 +90,7 @@ void IceConnectionToHost::InitializeAudio(
}
void IceConnectionToHost::OnSessionStateChange(Session::State state) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(event_callback_);
switch (state) {
@@ -216,7 +218,7 @@ void IceConnectionToHost::CloseChannels() {
}
void IceConnectionToHost::SetState(State state, ErrorCode error) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
// |error| should be specified only when |state| is set to FAILED.
DCHECK(state == FAILED || error == OK);
« no previous file with comments | « remoting/protocol/ice_connection_to_host.h ('k') | remoting/protocol/jingle_session_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698