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 /* |
| 5 TODO(sfeuz): Throw away. |
4 | 6 |
5 #include "chrome/browser/policy/configuration_policy_store_interface.h" | 7 #include "chrome/browser/policy/configuration_policy_store_interface.h" |
6 | 8 |
7 #include "base/values.h" | 9 #include "base/values.h" |
8 | 10 |
9 namespace { | 11 namespace { |
10 | 12 |
11 bool IsProxyPolicy(policy::ConfigurationPolicyType policy) { | 13 bool IsProxyPolicy(policy::ConfigurationPolicyType policy) { |
12 return policy == policy::kPolicyProxyMode || | 14 return policy == policy::kPolicyProxyMode || |
13 policy == policy::kPolicyProxyServerMode || | 15 policy == policy::kPolicyProxyServerMode || |
(...skipping 17 matching lines...) Expand all Loading... |
31 void FilteringPolicyStoreInterface::Apply(ConfigurationPolicyType policy, | 33 void FilteringPolicyStoreInterface::Apply(ConfigurationPolicyType policy, |
32 Value* value) { | 34 Value* value) { |
33 // Apply() takes ownership of |value|. | 35 // Apply() takes ownership of |value|. |
34 if (IsProxyPolicy(policy) && apply_proxy_policies_) | 36 if (IsProxyPolicy(policy) && apply_proxy_policies_) |
35 next_->Apply(policy, value); | 37 next_->Apply(policy, value); |
36 else | 38 else |
37 delete value; | 39 delete value; |
38 } | 40 } |
39 | 41 |
40 } // namespace policy | 42 } // namespace policy |
| 43 */ |
OLD | NEW |