| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |