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

Unified Diff: components/policy/core/common/cloud/cloud_policy_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
Index: components/policy/core/common/cloud/cloud_policy_store.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_store.cc b/components/policy/core/common/cloud/cloud_policy_store.cc
index 2544536f5aa5bd27a92f5286e4c6c56f6618d138..005161f6e127b0f767081589450146e2f38f95e1 100644
--- a/components/policy/core/common/cloud/cloud_policy_store.cc
+++ b/components/policy/core/common/cloud/cloud_policy_store.cc
@@ -44,12 +44,14 @@ void CloudPolicyStore::NotifyStoreLoaded() {
// metadata already.
if (external_data_manager_)
external_data_manager_->OnPolicyStoreLoaded();
- FOR_EACH_OBSERVER(Observer, observers_, OnStoreLoaded(this));
+ for (auto& observer : observers_)
+ observer.OnStoreLoaded(this);
}
void CloudPolicyStore::NotifyStoreError() {
is_initialized_ = true;
- FOR_EACH_OBSERVER(Observer, observers_, OnStoreError(this));
+ for (auto& observer : observers_)
+ observer.OnStoreError(this);
}
void CloudPolicyStore::SetExternalDataManager(

Powered by Google App Engine
This is Rietveld 408576698