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

Unified Diff: chrome/browser/chromeos/policy/user_network_configuration_updater.cc

Issue 2416763002: Replace FOR_EACH_OBSERVER in c/b/chromeos with range-based for (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: chrome/browser/chromeos/policy/user_network_configuration_updater.cc
diff --git a/chrome/browser/chromeos/policy/user_network_configuration_updater.cc b/chrome/browser/chromeos/policy/user_network_configuration_updater.cc
index 036ffbaba91a0e8a3bc5b708d603946cc469d968..7a29194f3814086505dbe1daf123505df22400b4 100644
--- a/chrome/browser/chromeos/policy/user_network_configuration_updater.cc
+++ b/chrome/browser/chromeos/policy/user_network_configuration_updater.cc
@@ -156,9 +156,8 @@ void UserNetworkConfigurationUpdater::SetCertificateImporter(
}
void UserNetworkConfigurationUpdater::NotifyTrustAnchorsChanged() {
- FOR_EACH_OBSERVER(WebTrustedCertsObserver,
- observer_list_,
- OnTrustAnchorsChanged(web_trust_certs_));
+ for (auto& observer : observer_list_)
+ observer.OnTrustAnchorsChanged(web_trust_certs_);
}
} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698