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

Unified Diff: jingle/notifier/base/weak_xmpp_client.cc

Issue 2913673003: Replace deprecated base::NonThreadSafe in jingle 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 | « jingle/notifier/base/weak_xmpp_client.h ('k') | jingle/notifier/base/xmpp_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/base/weak_xmpp_client.cc
diff --git a/jingle/notifier/base/weak_xmpp_client.cc b/jingle/notifier/base/weak_xmpp_client.cc
index 7cec36e40020c68e5d8c1963ff451198f33bac67..48a5dc0947cd1e5cb6f2de3fedad19fa38d8bff6 100644
--- a/jingle/notifier/base/weak_xmpp_client.cc
+++ b/jingle/notifier/base/weak_xmpp_client.cc
@@ -13,12 +13,12 @@ WeakXmppClient::WeakXmppClient(rtc::TaskParent* parent)
weak_ptr_factory_(this) {}
WeakXmppClient::~WeakXmppClient() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
Invalidate();
}
void WeakXmppClient::Invalidate() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
// We don't want XmppClient raising any signals once its invalidated.
SignalStateChange.disconnect_all();
SignalLogInput.disconnect_all();
@@ -27,12 +27,12 @@ void WeakXmppClient::Invalidate() {
}
base::WeakPtr<WeakXmppClient> WeakXmppClient::AsWeakPtr() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
return weak_ptr_factory_.GetWeakPtr();
}
void WeakXmppClient::Stop() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
// We don't want XmppClient used after it has been stopped.
Invalidate();
buzz::XmppClient::Stop();
« no previous file with comments | « jingle/notifier/base/weak_xmpp_client.h ('k') | jingle/notifier/base/xmpp_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698