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/configuration_policy_handler_list.h" | 5 #include "components/policy/core/browser/configuration_policy_handler_list.h" |
6 | 6 |
7 #include "base/prefs/pref_value_map.h" | 7 #include "base/prefs/pref_value_map.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "chrome/browser/policy/configuration_policy_handler.h" | 9 #include "components/policy/core/browser/configuration_policy_handler.h" |
10 #include "components/policy/core/browser/policy_error_map.h" | 10 #include "components/policy/core/browser/policy_error_map.h" |
11 #include "components/policy/core/common/policy_map.h" | 11 #include "components/policy/core/common/policy_map.h" |
12 #include "grit/component_strings.h" | 12 #include "grit/component_strings.h" |
13 | 13 |
14 namespace policy { | 14 namespace policy { |
15 ConfigurationPolicyHandlerList::ConfigurationPolicyHandlerList( | 15 ConfigurationPolicyHandlerList::ConfigurationPolicyHandlerList( |
16 const GetChromePolicyDetailsCallback& details_callback) | 16 const GetChromePolicyDetailsCallback& details_callback) |
17 : details_callback_(details_callback) {} | 17 : details_callback_(details_callback) {} |
18 | 18 |
19 ConfigurationPolicyHandlerList::~ConfigurationPolicyHandlerList() { | 19 ConfigurationPolicyHandlerList::~ConfigurationPolicyHandlerList() { |
(...skipping 30 matching lines...) Expand all Loading... |
50 } | 50 } |
51 | 51 |
52 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 52 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
53 PolicyMap* policies) const { | 53 PolicyMap* policies) const { |
54 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 54 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
55 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 55 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
56 (*handler)->PrepareForDisplaying(policies); | 56 (*handler)->PrepareForDisplaying(policies); |
57 } | 57 } |
58 | 58 |
59 } // namespace policy | 59 } // namespace policy |
OLD | NEW |