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

Unified Diff: remoting/signaling/xmpp_signal_strategy.cc

Issue 2415753002: Remove usage of base::ObserverList<T>::Iter::GetNext() in //remoting. (Closed)
Patch Set: Created 4 years, 2 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/fake_signal_strategy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/xmpp_signal_strategy.cc
diff --git a/remoting/signaling/xmpp_signal_strategy.cc b/remoting/signaling/xmpp_signal_strategy.cc
index 2dad2f71616a44104d95ab1d173ed4aa5c5bf736..591dac2c4b907bd5cd7236d8ead0c90f6abbddc1 100644
--- a/remoting/signaling/xmpp_signal_strategy.cc
+++ b/remoting/signaling/xmpp_signal_strategy.cc
@@ -366,9 +366,8 @@ void XmppSignalStrategy::Core::OnStanza(
<< stanza->Str()
<< "\n=========================================================";
- base::ObserverListBase<Listener>::Iterator it(&listeners_);
- for (Listener* listener = it.GetNext(); listener; listener = it.GetNext()) {
- if (listener->OnSignalStrategyIncomingStanza(stanza.get()))
+ for (auto& listener : listeners_) {
+ if (listener.OnSignalStrategyIncomingStanza(stanza.get()))
return;
}
}
« no previous file with comments | « remoting/signaling/fake_signal_strategy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698