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( | |
60 const scoped_refptr<SchemaMap>& current_map, | |
61 bool has_new_schemas) { | |
62 // Ignore, and don't call RefreshPolicies. Policies only have to be refreshes | |
bartfab (slow)
2013/11/05 15:53:04
Nit: s/refreshes/refreshed/
Joao da Silva
2013/11/07 13:15:00
Done.
| |
63 // when the delegate's registry is updated. | |
64 } | |
65 | |
59 } // namespace policy | 66 } // namespace policy |
OLD | NEW |