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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/chromeos/login/user.h" | 12 #include "chrome/browser/chromeos/login/user.h" |
13 #include "chrome/browser/chromeos/net/onc_utils.h" | 13 #include "chrome/browser/chromeos/net/onc_utils.h" |
14 #include "chrome/browser/net/nss_context.h" | 14 #include "chrome/browser/net/nss_context.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chromeos/network/managed_network_configuration_handler.h" | 16 #include "chromeos/network/managed_network_configuration_handler.h" |
17 #include "chromeos/network/onc/onc_certificate_importer_impl.h" | 17 #include "chromeos/network/onc/onc_certificate_importer_impl.h" |
18 #include "content/public/browser/browser_thread.h" | |
19 #include "content/public/browser/notification_source.h" | 18 #include "content/public/browser/notification_source.h" |
20 #include "net/cert/x509_certificate.h" | 19 #include "net/cert/x509_certificate.h" |
21 #include "policy/policy_constants.h" | 20 #include "policy/policy_constants.h" |
22 | 21 |
23 namespace { | 22 namespace { |
24 | 23 |
25 bool skip_certificate_importer_creation_for_test = false; | 24 bool skip_certificate_importer_creation_for_test = false; |
26 | 25 |
27 } // namespace | 26 } // namespace |
28 | 27 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 pending_certificates_onc_.reset(); | 161 pending_certificates_onc_.reset(); |
163 } | 162 } |
164 | 163 |
165 void UserNetworkConfigurationUpdater::NotifyTrustAnchorsChanged() { | 164 void UserNetworkConfigurationUpdater::NotifyTrustAnchorsChanged() { |
166 FOR_EACH_OBSERVER(WebTrustedCertsObserver, | 165 FOR_EACH_OBSERVER(WebTrustedCertsObserver, |
167 observer_list_, | 166 observer_list_, |
168 OnTrustAnchorsChanged(web_trust_certs_)); | 167 OnTrustAnchorsChanged(web_trust_certs_)); |
169 } | 168 } |
170 | 169 |
171 } // namespace policy | 170 } // namespace policy |
OLD | NEW |