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

Unified Diff: remoting/signaling/fake_signal_strategy.cc

Issue 2425483002: Remove usage of FOR_EACH_OBSERVER macro in remoting (Closed)
Patch Set: braces 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 69af43d7ba14521f358ec19a8093b614836a75ae..fffc047661422acb6e9c090de04f43c834579e63 100644
--- a/remoting/signaling/fake_signal_strategy.cc
+++ b/remoting/signaling/fake_signal_strategy.cc
@@ -65,14 +65,14 @@ void FakeSignalStrategy::SetLocalJid(const std::string& jid) {
void FakeSignalStrategy::Connect() {
DCHECK(CalledOnValidThread());
- FOR_EACH_OBSERVER(Listener, listeners_,
- OnSignalStrategyStateChange(CONNECTED));
+ for (auto& observer : listeners_)
+ observer.OnSignalStrategyStateChange(CONNECTED);
}
void FakeSignalStrategy::Disconnect() {
DCHECK(CalledOnValidThread());
- FOR_EACH_OBSERVER(Listener, listeners_,
- OnSignalStrategyStateChange(DISCONNECTED));
+ for (auto& observer : listeners_)
+ observer.OnSignalStrategyStateChange(DISCONNECTED);
}
SignalStrategy::State FakeSignalStrategy::GetState() const {
« 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