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

Unified Diff: chromeos/cert_loader.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/audio/cras_audio_handler.cc ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/cert_loader.cc
diff --git a/chromeos/cert_loader.cc b/chromeos/cert_loader.cc
index 22efff5ba02f88e456ec9e03abdecd05e373e971..553230078f296b4e7b7f25c90e4d1a472bcc2f71 100644
--- a/chromeos/cert_loader.cc
+++ b/chromeos/cert_loader.cc
@@ -170,8 +170,8 @@ void CertLoader::UpdateCertificates(
}
void CertLoader::NotifyCertificatesLoaded(bool initial_load) {
- FOR_EACH_OBSERVER(Observer, observers_,
- OnCertificatesLoaded(*cert_list_, initial_load));
+ for (auto& observer : observers_)
+ observer.OnCertificatesLoaded(*cert_list_, initial_load);
}
void CertLoader::OnCertDBChanged(const net::X509Certificate* cert) {
« no previous file with comments | « chromeos/audio/cras_audio_handler.cc ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698