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

Unified Diff: components/invalidation/impl/ticl_settings_provider.cc

Issue 2427913002: Reduce usage of FOR_EACH_OBSERVER macro in components/invalidation (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 | « components/invalidation/impl/sync_system_resources.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/invalidation/impl/ticl_settings_provider.cc
diff --git a/components/invalidation/impl/ticl_settings_provider.cc b/components/invalidation/impl/ticl_settings_provider.cc
index 6c9c6327d1b14c16662a80044cff25a4e3e889b1..c8b7adc535d1cdcf38d40d1ac6bc37c4d06bc5d1 100644
--- a/components/invalidation/impl/ticl_settings_provider.cc
+++ b/components/invalidation/impl/ticl_settings_provider.cc
@@ -24,7 +24,8 @@ void TiclSettingsProvider::RemoveObserver(Observer* observer) {
}
void TiclSettingsProvider::FireOnUseGCMChannelChanged() {
- FOR_EACH_OBSERVER(Observer, observers_, OnUseGCMChannelChanged());
+ for (auto& observer : observers_)
+ observer.OnUseGCMChannelChanged();
}
} // namespace invalidation
« no previous file with comments | « components/invalidation/impl/sync_system_resources.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698