| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/policy/cloud_policy_provider_impl.h" | 5 #include "chrome/browser/policy/cloud_policy_provider_impl.h" |
| 6 | 6 |
| 7 #include <set> | |
| 8 | |
| 9 #include "base/values.h" | |
| 10 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 7 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
| 11 | 8 |
| 12 namespace policy { | 9 namespace policy { |
| 13 | 10 |
| 14 CloudPolicyProviderImpl::CloudPolicyProviderImpl( | 11 CloudPolicyProviderImpl::CloudPolicyProviderImpl( |
| 15 const ConfigurationPolicyProvider::PolicyDefinitionList* policy_list, | 12 const ConfigurationPolicyProvider::PolicyDefinitionList* policy_list, |
| 16 CloudPolicyCacheBase::PolicyLevel level) | 13 CloudPolicyCacheBase::PolicyLevel level) |
| 17 : CloudPolicyProvider(policy_list), | 14 : CloudPolicyProvider(policy_list), |
| 18 level_(level), | 15 level_(level), |
| 19 initialization_complete_(true) {} | 16 initialization_complete_(true) {} |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 if (newly_combined.Equals(combined_) && !force_update) | 128 if (newly_combined.Equals(combined_) && !force_update) |
| 132 return; | 129 return; |
| 133 | 130 |
| 134 // Trigger a notification if there was a change. | 131 // Trigger a notification if there was a change. |
| 135 combined_.Swap(&newly_combined); | 132 combined_.Swap(&newly_combined); |
| 136 FOR_EACH_OBSERVER(ConfigurationPolicyProvider::Observer, | 133 FOR_EACH_OBSERVER(ConfigurationPolicyProvider::Observer, |
| 137 observer_list_, OnUpdatePolicy()); | 134 observer_list_, OnUpdatePolicy()); |
| 138 } | 135 } |
| 139 | 136 |
| 140 } // namespace policy | 137 } // namespace policy |
| OLD | NEW |