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

Unified Diff: components/invalidation/impl/sync_system_resources.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
Index: components/invalidation/impl/sync_system_resources.cc
diff --git a/components/invalidation/impl/sync_system_resources.cc b/components/invalidation/impl/sync_system_resources.cc
index f4f04e0f2605fa0b8032661901a9ca4ae17885c0..3cd65e74e0d0dbfb6d95fc93e73247a653a14109 100644
--- a/components/invalidation/impl/sync_system_resources.cc
+++ b/components/invalidation/impl/sync_system_resources.cc
@@ -193,8 +193,8 @@ void SyncNetworkChannel::NotifyNetworkStatusChange(bool online) {
void SyncNetworkChannel::NotifyChannelStateChange(
InvalidatorState invalidator_state) {
- FOR_EACH_OBSERVER(Observer, observers_,
- OnNetworkChannelStateChanged(invalidator_state));
+ for (auto& observer : observers_)
+ observer.OnNetworkChannelStateChanged(invalidator_state);
}
bool SyncNetworkChannel::DeliverIncomingMessage(const std::string& message) {
« no previous file with comments | « components/invalidation/impl/invalidator_registrar.cc ('k') | components/invalidation/impl/ticl_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698