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

Unified Diff: components/gcm_driver/gcm_driver_desktop.cc

Issue 2440303002: Remove usage of FOR_EACH_OBSERVER macro in components/ (Closed)
Patch Set: remove superfluous return 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
Index: components/gcm_driver/gcm_driver_desktop.cc
diff --git a/components/gcm_driver/gcm_driver_desktop.cc b/components/gcm_driver/gcm_driver_desktop.cc
index d8f7fafba846ea01d4df4c71aea7a8aabd0dab54..7015990337a46d494be2a7bc3ee77324a472623b 100644
--- a/components/gcm_driver/gcm_driver_desktop.cc
+++ b/components/gcm_driver/gcm_driver_desktop.cc
@@ -1283,9 +1283,8 @@ void GCMDriverDesktop::OnConnected(const net::IPEndPoint& ip_endpoint) {
if (!gcm_started_)
return;
- FOR_EACH_OBSERVER(GCMConnectionObserver,
- connection_observer_list_,
- OnConnected(ip_endpoint));
+ for (GCMConnectionObserver& observer : connection_observer_list_)
+ observer.OnConnected(ip_endpoint);
}
void GCMDriverDesktop::OnDisconnected() {
@@ -1297,8 +1296,8 @@ void GCMDriverDesktop::OnDisconnected() {
if (!gcm_started_)
return;
- FOR_EACH_OBSERVER(
- GCMConnectionObserver, connection_observer_list_, OnDisconnected());
+ for (GCMConnectionObserver& observer : connection_observer_list_)
+ observer.OnDisconnected();
}
void GCMDriverDesktop::GetGCMStatisticsFinished(
« no previous file with comments | « components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc ('k') | components/infobars/core/infobar_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698