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

Unified Diff: components/sync/base/sync_prefs.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 | « no previous file | components/sync/device_info/device_info_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/base/sync_prefs.cc
diff --git a/components/sync/base/sync_prefs.cc b/components/sync/base/sync_prefs.cc
index 6f5d5c0c719c2985e90eedc0b9eb10c6fc4e6149..173a059ac43b31b0dccba57b3d1fa14bd062088b 100644
--- a/components/sync/base/sync_prefs.cc
+++ b/components/sync/base/sync_prefs.cc
@@ -341,8 +341,8 @@ void SyncPrefs::SetSpareBootstrapToken(const std::string& token) {
void SyncPrefs::OnSyncManagedPrefChanged() {
DCHECK(CalledOnValidThread());
- FOR_EACH_OBSERVER(SyncPrefObserver, sync_pref_observers_,
- OnSyncManagedPrefChange(*pref_sync_managed_));
+ for (auto& observer : sync_pref_observers_)
+ observer.OnSyncManagedPrefChange(*pref_sync_managed_);
}
void SyncPrefs::SetManagedForTest(bool is_managed) {
« no previous file with comments | « no previous file | components/sync/device_info/device_info_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698