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

Unified Diff: components/sync/device_info/device_info_service.cc

Issue 2424673002: Remove usage of FOR_EACH_OBSERVER macro in components/sync (Closed)
Patch Set: blank line before 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
« no previous file with comments | « components/sync/base/sync_prefs.cc ('k') | components/sync/device_info/device_info_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/device_info/device_info_service.cc
diff --git a/components/sync/device_info/device_info_service.cc b/components/sync/device_info/device_info_service.cc
index 7f0853ee35b69e74734320b42e2ddcaf06f263d1..b13f1d4e5d4db5d372cac9ead0d2e6eff0882c77 100644
--- a/components/sync/device_info/device_info_service.cc
+++ b/components/sync/device_info/device_info_service.cc
@@ -216,7 +216,8 @@ int DeviceInfoService::CountActiveDevices() const {
}
void DeviceInfoService::NotifyObservers() {
- FOR_EACH_OBSERVER(Observer, observers_, OnDeviceInfoChange());
+ for (auto& observer : observers_)
+ observer.OnDeviceInfoChange();
}
// Static.
« no previous file with comments | « components/sync/base/sync_prefs.cc ('k') | components/sync/device_info/device_info_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698