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

Unified Diff: components/prefs/pref_notifier_impl.cc

Issue 2444753002: 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/prefs/overlay_user_pref_store.cc ('k') | components/prefs/testing_pref_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/pref_notifier_impl.cc
diff --git a/components/prefs/pref_notifier_impl.cc b/components/prefs/pref_notifier_impl.cc
index a5e8e9846aeab3cb21d5d665a88ba06c441a5356..a28fbaffad9f5c17bcc0a410c403943d81bda01d 100644
--- a/components/prefs/pref_notifier_impl.cc
+++ b/components/prefs/pref_notifier_impl.cc
@@ -93,9 +93,8 @@ void PrefNotifierImpl::FireObservers(const std::string& path) {
if (observer_iterator == pref_observers_.end())
return;
- FOR_EACH_OBSERVER(PrefObserver,
- *(observer_iterator->second),
- OnPreferenceChanged(pref_service_, path));
+ for (PrefObserver& observer : *(observer_iterator->second))
+ observer.OnPreferenceChanged(pref_service_, path);
}
void PrefNotifierImpl::SetPrefService(PrefService* pref_service) {
« no previous file with comments | « components/prefs/overlay_user_pref_store.cc ('k') | components/prefs/testing_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698