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 | 4 |
5 #include "chrome/browser/policy/configuration_policy_handler_list.h" | 5 #include "chrome/browser/policy/configuration_policy_handler_list.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/policy/configuration_policy_handler.h" | 9 #include "chrome/browser/policy/configuration_policy_handler.h" |
10 #include "chrome/browser/policy/policy_error_map.h" | 10 #include "chrome/browser/policy/policy_error_map.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 { Value::TYPE_BOOLEAN, kPolicyHideWebStorePromo, | 187 { Value::TYPE_BOOLEAN, kPolicyHideWebStorePromo, |
188 prefs::kNTPHideWebStorePromo }, | 188 prefs::kNTPHideWebStorePromo }, |
189 { Value::TYPE_LIST, kPolicyURLBlacklist, | 189 { Value::TYPE_LIST, kPolicyURLBlacklist, |
190 prefs::kUrlBlacklist }, | 190 prefs::kUrlBlacklist }, |
191 { Value::TYPE_LIST, kPolicyURLWhitelist, | 191 { Value::TYPE_LIST, kPolicyURLWhitelist, |
192 prefs::kUrlWhitelist }, | 192 prefs::kUrlWhitelist }, |
193 { Value::TYPE_STRING, kPolicyEnterpriseWebStoreURL, | 193 { Value::TYPE_STRING, kPolicyEnterpriseWebStoreURL, |
194 prefs::kEnterpriseWebStoreURL }, | 194 prefs::kEnterpriseWebStoreURL }, |
195 { Value::TYPE_STRING, kPolicyEnterpriseWebStoreName, | 195 { Value::TYPE_STRING, kPolicyEnterpriseWebStoreName, |
196 prefs::kEnterpriseWebStoreName }, | 196 prefs::kEnterpriseWebStoreName }, |
| 197 { Value::TYPE_BOOLEAN, kPolicyEnableMemoryInfo, |
| 198 prefs::kEnableMemoryInfo }, |
197 | 199 |
198 #if defined(OS_CHROMEOS) | 200 #if defined(OS_CHROMEOS) |
199 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, | 201 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, |
200 prefs::kEnableScreenLock }, | 202 prefs::kEnableScreenLock }, |
201 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel, | 203 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel, |
202 prefs::kChromeOsReleaseChannel }, | 204 prefs::kChromeOsReleaseChannel }, |
203 #endif // defined(OS_CHROMEOS) | 205 #endif // defined(OS_CHROMEOS) |
204 }; | 206 }; |
205 | 207 |
206 } // namespace | 208 } // namespace |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 265 } |
264 | 266 |
265 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 267 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
266 PolicyMap* policies) const { | 268 PolicyMap* policies) const { |
267 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 269 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
268 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 270 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
269 (*handler)->PrepareForDisplaying(policies); | 271 (*handler)->PrepareForDisplaying(policies); |
270 } | 272 } |
271 | 273 |
272 } // namespace policy | 274 } // namespace policy |
OLD | NEW |