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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/policy/user_network_configuration_updater.h" 5 #include "chrome/browser/chromeos/policy/user_network_configuration_updater.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void UserNetworkConfigurationUpdater::SetCertificateImporter( 149 void UserNetworkConfigurationUpdater::SetCertificateImporter(
150 std::unique_ptr<chromeos::onc::CertificateImporter> certificate_importer) { 150 std::unique_ptr<chromeos::onc::CertificateImporter> certificate_importer) {
151 certificate_importer_ = std::move(certificate_importer); 151 certificate_importer_ = std::move(certificate_importer);
152 152
153 if (pending_certificates_onc_) 153 if (pending_certificates_onc_)
154 ImportCertificates(*pending_certificates_onc_); 154 ImportCertificates(*pending_certificates_onc_);
155 pending_certificates_onc_.reset(); 155 pending_certificates_onc_.reset();
156 } 156 }
157 157
158 void UserNetworkConfigurationUpdater::NotifyTrustAnchorsChanged() { 158 void UserNetworkConfigurationUpdater::NotifyTrustAnchorsChanged() {
159 FOR_EACH_OBSERVER(WebTrustedCertsObserver, 159 for (auto& observer : observer_list_)
160 observer_list_, 160 observer.OnTrustAnchorsChanged(web_trust_certs_);
161 OnTrustAnchorsChanged(web_trust_certs_));
162 } 161 }
163 162
164 } // namespace policy 163 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698