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

Unified Diff: components/policy/core/common/configuration_policy_provider.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
Index: components/policy/core/common/configuration_policy_provider.cc
diff --git a/components/policy/core/common/configuration_policy_provider.cc b/components/policy/core/common/configuration_policy_provider.cc
index 17ff41870004c330b7d03804041ccf3e7bdab05d..fd3beec280d7a3c300ed0fd996114f3185b795b1 100644
--- a/components/policy/core/common/configuration_policy_provider.cc
+++ b/components/policy/core/common/configuration_policy_provider.cc
@@ -47,9 +47,8 @@ void ConfigurationPolicyProvider::UpdatePolicy(
policy_bundle_.Swap(bundle.get());
else
policy_bundle_.Clear();
- FOR_EACH_OBSERVER(ConfigurationPolicyProvider::Observer,
- observer_list_,
- OnUpdatePolicy(this));
+ for (auto& observer : observer_list_)
+ observer.OnUpdatePolicy(this);
}
SchemaRegistry* ConfigurationPolicyProvider::schema_registry() const {
« no previous file with comments | « components/policy/core/common/cloud/cloud_policy_store.cc ('k') | components/policy/core/common/policy_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698