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

Unified Diff: blimp/net/blimp_connection.cc

Issue 2425493002: Remove usage of FOR_EACH_OBSERVER macro in blimp (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 | « blimp/engine/app/ui/blimp_screen.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_connection.cc
diff --git a/blimp/net/blimp_connection.cc b/blimp/net/blimp_connection.cc
index cc5f855fa24453fef1db8d5dc77d249f4ffe64b4..57a3580d74394de21c9ab30ecba1141a29171e29 100644
--- a/blimp/net/blimp_connection.cc
+++ b/blimp/net/blimp_connection.cc
@@ -192,8 +192,8 @@ void BlimpConnection::OnConnectionError(int error) {
VLOG(1) << "OnConnectionError, error=" << error;
// Propagate the error to all observers.
- FOR_EACH_OBSERVER(ConnectionErrorObserver, error_observers_,
- OnConnectionError(error));
+ for (auto& observer : error_observers_)
+ observer.OnConnectionError(error);
}
} // namespace blimp
« no previous file with comments | « blimp/engine/app/ui/blimp_screen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698