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

Unified Diff: components/policy/core/browser/configuration_policy_pref_store.cc

Issue 2422083002: Remove usage of FOR_EACH_OBSERVER macro in components/policy (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 | « no previous file | components/policy/core/common/cloud/cloud_policy_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/browser/configuration_policy_pref_store.cc
diff --git a/components/policy/core/browser/configuration_policy_pref_store.cc b/components/policy/core/browser/configuration_policy_pref_store.cc
index 35afed7c77deb123ff944dd7cc15eeecef7118ad..17ca01b44385bdf743fe338a566fadf97c9e0bbb 100644
--- a/components/policy/core/browser/configuration_policy_pref_store.cc
+++ b/components/policy/core/browser/configuration_policy_pref_store.cc
@@ -91,8 +91,8 @@ void ConfigurationPolicyPrefStore::OnPolicyUpdated(
void ConfigurationPolicyPrefStore::OnPolicyServiceInitialized(
PolicyDomain domain) {
if (domain == POLICY_DOMAIN_CHROME) {
- FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
- OnInitializationCompleted(true));
+ for (auto& observer : observers_)
+ observer.OnInitializationCompleted(true);
}
}
@@ -110,8 +110,8 @@ void ConfigurationPolicyPrefStore::Refresh() {
for (std::vector<std::string>::const_iterator pref(changed_prefs.begin());
pref != changed_prefs.end();
++pref) {
- FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
- OnPrefValueChanged(*pref));
+ for (auto& observer : observers_)
+ observer.OnPrefValueChanged(*pref);
}
}
« no previous file with comments | « no previous file | components/policy/core/common/cloud/cloud_policy_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698