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

Unified Diff: components/sync/device_info/device_info_sync_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/device_info/device_info_service.cc ('k') | components/sync/driver/backend_migrator.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_sync_service.cc
diff --git a/components/sync/device_info/device_info_sync_service.cc b/components/sync/device_info/device_info_sync_service.cc
index c9fe8c4c847843d5ef6e5d014324e70b4df0e2bd..4797e49273f00a6c868149a7d0c1680ef1676b26 100644
--- a/components/sync/device_info/device_info_sync_service.cc
+++ b/components/sync/device_info/device_info_sync_service.cc
@@ -224,7 +224,8 @@ int DeviceInfoSyncService::CountActiveDevices() const {
}
void DeviceInfoSyncService::NotifyObservers() {
- FOR_EACH_OBSERVER(Observer, observers_, OnDeviceInfoChange());
+ for (auto& observer : observers_)
+ observer.OnDeviceInfoChange();
}
SyncData DeviceInfoSyncService::CreateLocalData(const DeviceInfo* info) {
« no previous file with comments | « components/sync/device_info/device_info_service.cc ('k') | components/sync/driver/backend_migrator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698