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

Unified Diff: components/syncable_prefs/pref_service_syncable.cc

Issue 2430823002: Reduce usage of FOR_EACH_OBSERVER macro in components/ (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/syncable_prefs/pref_model_associator.cc ('k') | components/undo/undo_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/syncable_prefs/pref_service_syncable.cc
diff --git a/components/syncable_prefs/pref_service_syncable.cc b/components/syncable_prefs/pref_service_syncable.cc
index ab5e156b6ec4d534697bf6cd874df42b1045f8cb..3aca8af5e43bbc3eee3c0e6ba1dff270ee535644 100644
--- a/components/syncable_prefs/pref_service_syncable.cc
+++ b/components/syncable_prefs/pref_service_syncable.cc
@@ -180,8 +180,8 @@ void PrefServiceSyncable::AddRegisteredSyncablePreference(
}
void PrefServiceSyncable::OnIsSyncingChanged() {
- FOR_EACH_OBSERVER(PrefServiceSyncableObserver, observer_list_,
- OnIsSyncingChanged());
+ for (auto& observer : observer_list_)
+ observer.OnIsSyncingChanged();
}
void PrefServiceSyncable::ProcessPrefChange(const std::string& name) {
« no previous file with comments | « components/syncable_prefs/pref_model_associator.cc ('k') | components/undo/undo_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698