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

Unified Diff: chromeos/network/managed_network_configuration_handler_impl.cc

Issue 2413963002: Replace FOR_EACH_OBSERVER in chromeos/ with range-based for (Closed)
Patch Set: Run the script again with '/mg' 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 | « chromeos/network/client_cert_resolver.cc ('k') | chromeos/network/network_configuration_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/managed_network_configuration_handler_impl.cc
diff --git a/chromeos/network/managed_network_configuration_handler_impl.cc b/chromeos/network/managed_network_configuration_handler_impl.cc
index dd46255644671808b2ed3a43adce488bdf3117c7..14241b5788e0bdcd18dff1c53cef9efc02ed3a95 100644
--- a/chromeos/network/managed_network_configuration_handler_impl.cc
+++ b/chromeos/network/managed_network_configuration_handler_impl.cc
@@ -464,8 +464,8 @@ void ManagedNetworkConfigurationHandlerImpl::SetPolicy(
old_per_network_config.clear();
ApplyOrQueuePolicies(userhash, &modified_policies);
- FOR_EACH_OBSERVER(NetworkPolicyObserver, observers_,
- PoliciesChanged(userhash));
+ for (auto& observer : observers_)
+ observer.PoliciesChanged(userhash);
}
bool ManagedNetworkConfigurationHandlerImpl::IsAnyPolicyApplicationRunning()
@@ -604,8 +604,8 @@ void ManagedNetworkConfigurationHandlerImpl::OnPoliciesApplied(
queued_modified_policies_.erase(userhash);
ApplyOrQueuePolicies(userhash, &modified_policies);
} else {
- FOR_EACH_OBSERVER(
- NetworkPolicyObserver, observers_, PoliciesApplied(userhash));
+ for (auto& observer : observers_)
+ observer.PoliciesApplied(userhash);
}
}
@@ -730,8 +730,8 @@ void ManagedNetworkConfigurationHandlerImpl::OnPolicyAppliedToNetwork(
const std::string& guid) {
if (service_path.empty())
return;
- FOR_EACH_OBSERVER(
- NetworkPolicyObserver, observers_, PolicyAppliedToNetwork(service_path));
+ for (auto& observer : observers_)
+ observer.PolicyAppliedToNetwork(service_path);
}
// Get{Managed}Properties helpers
« no previous file with comments | « chromeos/network/client_cert_resolver.cc ('k') | chromeos/network/network_configuration_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698