| 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/proxy_policy_provider.h" | 5 #include "chrome/browser/chromeos/policy/proxy_policy_provider.h" |
| 6 | 6 |
| 7 namespace policy { | 7 namespace policy { |
| 8 | 8 |
| 9 ProxyPolicyProvider::ProxyPolicyProvider() : delegate_(NULL) {} | 9 ProxyPolicyProvider::ProxyPolicyProvider() : delegate_(NULL) {} |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 | 50 |
| 51 void ProxyPolicyProvider::OnUpdatePolicy( | 51 void ProxyPolicyProvider::OnUpdatePolicy( |
| 52 ConfigurationPolicyProvider* provider) { | 52 ConfigurationPolicyProvider* provider) { |
| 53 DCHECK_EQ(delegate_, provider); | 53 DCHECK_EQ(delegate_, provider); |
| 54 scoped_ptr<PolicyBundle> bundle(new PolicyBundle()); | 54 scoped_ptr<PolicyBundle> bundle(new PolicyBundle()); |
| 55 bundle->CopyFrom(delegate_->policies()); | 55 bundle->CopyFrom(delegate_->policies()); |
| 56 UpdatePolicy(bundle.Pass()); | 56 UpdatePolicy(bundle.Pass()); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void ProxyPolicyProvider::OnSchemaRegistryUpdated(bool has_new_schemas) { | |
| 60 // Ignore, and don't call RefreshPolicies. Policies only have to be refreshed | |
| 61 // when the delegate's registry is updated. | |
| 62 } | |
| 63 | |
| 64 } // namespace policy | 59 } // namespace policy |
| OLD | NEW |