OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/network_configuration_updater.h" | 5 #include "chrome/browser/chromeos/policy/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 "chromeos/network/onc/onc_utils.h" | 11 #include "chromeos/network/onc/onc_utils.h" |
12 #include "components/policy/core/common/policy_map.h" | 12 #include "components/policy/core/common/policy_map.h" |
13 #include "policy/policy_constants.h" | 13 #include "components/policy/policy_constants.h" |
14 | 14 |
15 namespace policy { | 15 namespace policy { |
16 | 16 |
17 NetworkConfigurationUpdater::~NetworkConfigurationUpdater() { | 17 NetworkConfigurationUpdater::~NetworkConfigurationUpdater() { |
18 policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, this); | 18 policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, this); |
19 } | 19 } |
20 | 20 |
21 void NetworkConfigurationUpdater::OnPolicyUpdated(const PolicyNamespace& ns, | 21 void NetworkConfigurationUpdater::OnPolicyUpdated(const PolicyNamespace& ns, |
22 const PolicyMap& previous, | 22 const PolicyMap& previous, |
23 const PolicyMap& current) { | 23 const PolicyMap& current) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 ImportCertificates(certificates); | 95 ImportCertificates(certificates); |
96 ApplyNetworkPolicy(&network_configs, &global_network_config); | 96 ApplyNetworkPolicy(&network_configs, &global_network_config); |
97 } | 97 } |
98 | 98 |
99 std::string NetworkConfigurationUpdater::LogHeader() const { | 99 std::string NetworkConfigurationUpdater::LogHeader() const { |
100 return chromeos::onc::GetSourceAsString(onc_source_); | 100 return chromeos::onc::GetSourceAsString(onc_source_); |
101 } | 101 } |
102 | 102 |
103 } // namespace policy | 103 } // namespace policy |
OLD | NEW |