| 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/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 |
| 11 ProxyPolicyProvider::~ProxyPolicyProvider() { | 11 ProxyPolicyProvider::~ProxyPolicyProvider() { |
| 12 DCHECK(!delegate_); | 12 DCHECK(!delegate_); |
| 13 } | 13 } |
| 14 | 14 |
| 15 void ProxyPolicyProvider::SetDelegate(ConfigurationPolicyProvider* delegate) { | 15 void ProxyPolicyProvider::SetDelegate(ConfigurationPolicyProvider* delegate) { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } // namespace policy | 59 } // namespace policy |
| OLD | NEW |