Index: remoting/protocol/ssl_hmac_channel_authenticator.cc |
diff --git a/remoting/protocol/ssl_hmac_channel_authenticator.cc b/remoting/protocol/ssl_hmac_channel_authenticator.cc |
index 177699a45bf6f3bb4ef70c3f11650efd38d78792..5cad1119d210d917c92ecd7ee32fe6d68eb7cd96 100644 |
--- a/remoting/protocol/ssl_hmac_channel_authenticator.cc |
+++ b/remoting/protocol/ssl_hmac_channel_authenticator.cc |
@@ -223,12 +223,13 @@ SslHmacChannelAuthenticator::SslHmacChannelAuthenticator( |
} |
SslHmacChannelAuthenticator::~SslHmacChannelAuthenticator() { |
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); |
} |
void SslHmacChannelAuthenticator::SecureAndAuthenticate( |
std::unique_ptr<P2PStreamSocket> socket, |
const DoneCallback& done_callback) { |
- DCHECK(CalledOnValidThread()); |
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); |
done_callback_ = done_callback; |
@@ -377,7 +378,7 @@ void SslHmacChannelAuthenticator::WriteAuthenticationBytes( |
} |
void SslHmacChannelAuthenticator::OnAuthBytesWritten(int result) { |
- DCHECK(CalledOnValidThread()); |
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); |
if (HandleAuthBytesWritten(result, nullptr)) |
WriteAuthenticationBytes(nullptr); |
@@ -417,7 +418,7 @@ void SslHmacChannelAuthenticator::ReadAuthenticationBytes() { |
} |
void SslHmacChannelAuthenticator::OnAuthBytesRead(int result) { |
- DCHECK(CalledOnValidThread()); |
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); |
if (HandleAuthBytesRead(result)) |
ReadAuthenticationBytes(); |