| Index: components/policy/core/common/cloud/cloud_policy_client.cc
|
| diff --git a/components/policy/core/common/cloud/cloud_policy_client.cc b/components/policy/core/common/cloud/cloud_policy_client.cc
|
| index ea5ba54ec22c1238c16711a18c1833c48aa1e66c..5440bddcc4f9b2416cfdec6027f475c25e987aaa 100644
|
| --- a/components/policy/core/common/cloud/cloud_policy_client.cc
|
| +++ b/components/policy/core/common/cloud/cloud_policy_client.cc
|
| @@ -769,19 +769,23 @@ void CloudPolicyClient::OnGcmIdUpdated(
|
| }
|
|
|
| void CloudPolicyClient::NotifyPolicyFetched() {
|
| - FOR_EACH_OBSERVER(Observer, observers_, OnPolicyFetched(this));
|
| + for (auto& observer : observers_)
|
| + observer.OnPolicyFetched(this);
|
| }
|
|
|
| void CloudPolicyClient::NotifyRegistrationStateChanged() {
|
| - FOR_EACH_OBSERVER(Observer, observers_, OnRegistrationStateChanged(this));
|
| + for (auto& observer : observers_)
|
| + observer.OnRegistrationStateChanged(this);
|
| }
|
|
|
| void CloudPolicyClient::NotifyRobotAuthCodesFetched() {
|
| - FOR_EACH_OBSERVER(Observer, observers_, OnRobotAuthCodesFetched(this));
|
| + for (auto& observer : observers_)
|
| + observer.OnRobotAuthCodesFetched(this);
|
| }
|
|
|
| void CloudPolicyClient::NotifyClientError() {
|
| - FOR_EACH_OBSERVER(Observer, observers_, OnClientError(this));
|
| + for (auto& observer : observers_)
|
| + observer.OnClientError(this);
|
| }
|
|
|
| } // namespace policy
|
|
|