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

Unified Diff: remoting/signaling/fake_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/delegating_signal_strategy.cc ('k') | remoting/signaling/xmpp_signal_strategy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/fake_signal_strategy.cc
diff --git a/remoting/signaling/fake_signal_strategy.cc b/remoting/signaling/fake_signal_strategy.cc
index 12cd2c12ffdd78aca62cadee1bc5d760894983d5..69af43d7ba14521f358ec19a8093b614836a75ae 100644
--- a/remoting/signaling/fake_signal_strategy.cc
+++ b/remoting/signaling/fake_signal_strategy.cc
@@ -146,10 +146,8 @@ void FakeSignalStrategy::OnIncomingMessage(
return;
}
- base::ObserverListBase<Listener>::Iterator it(&listeners_);
- Listener* listener;
- while ((listener = it.GetNext()) != nullptr) {
- if (listener->OnSignalStrategyIncomingStanza(stanza_ptr))
+ for (auto& listener : listeners_) {
+ if (listener.OnSignalStrategyIncomingStanza(stanza_ptr))
break;
}
}
« no previous file with comments | « remoting/signaling/delegating_signal_strategy.cc ('k') | remoting/signaling/xmpp_signal_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698