| Index: jingle/notifier/base/xmpp_connection.cc
|
| diff --git a/jingle/notifier/base/xmpp_connection.cc b/jingle/notifier/base/xmpp_connection.cc
|
| index 8d71e5d9a5e1d883f6c295d578e2baeffcd46aec..01e4e8ff930977f3aa68a35485d268f26fc9e0c8 100644
|
| --- a/jingle/notifier/base/xmpp_connection.cc
|
| +++ b/jingle/notifier/base/xmpp_connection.cc
|
| @@ -79,7 +79,7 @@ XmppConnection::XmppConnection(
|
| }
|
|
|
| XmppConnection::~XmppConnection() {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| ClearClient();
|
| task_pump_->Stop();
|
| // We do this because XmppConnection may get destroyed as a result
|
| @@ -91,7 +91,7 @@ XmppConnection::~XmppConnection() {
|
| }
|
|
|
| void XmppConnection::OnStateChange(buzz::XmppEngine::State state) {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| VLOG(1) << "XmppClient state changed to " << state;
|
| if (!weak_xmpp_client_.get()) {
|
| LOG(DFATAL) << "weak_xmpp_client_ unexpectedly NULL";
|
| @@ -129,12 +129,12 @@ void XmppConnection::OnStateChange(buzz::XmppEngine::State state) {
|
| }
|
|
|
| void XmppConnection::OnInputLog(const char* data, int len) {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| VLOG(2) << "XMPP Input: " << base::StringPiece(data, len);
|
| }
|
|
|
| void XmppConnection::OnOutputLog(const char* data, int len) {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| VLOG(2) << "XMPP Output: " << base::StringPiece(data, len);
|
| }
|
|
|
|
|