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

Unified Diff: components/prefs/in_memory_pref_store.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/default_pref_store.cc ('k') | components/prefs/json_pref_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/in_memory_pref_store.cc
diff --git a/components/prefs/in_memory_pref_store.cc b/components/prefs/in_memory_pref_store.cc
index c222a3680ac232aeb2ee1bdf6c43a8d953b290e7..d0d35582523908a612263c1bba93cd29b762c422 100644
--- a/components/prefs/in_memory_pref_store.cc
+++ b/components/prefs/in_memory_pref_store.cc
@@ -72,5 +72,6 @@ PersistentPrefStore::PrefReadError InMemoryPrefStore::ReadPrefs() {
void InMemoryPrefStore::ReportValueChanged(const std::string& key,
uint32_t flags) {
- FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
+ for (Observer& observer : observers_)
+ observer.OnPrefValueChanged(key);
}
« no previous file with comments | « components/prefs/default_pref_store.cc ('k') | components/prefs/json_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698