| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 { Value::TYPE_BOOLEAN, kPolicyImportSavedPasswords, | 173 { Value::TYPE_BOOLEAN, kPolicyImportSavedPasswords, |
| 174 prefs::kImportSavedPasswords }, | 174 prefs::kImportSavedPasswords }, |
| 175 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy, | 175 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy, |
| 176 prefs::kMaxConnectionsPerProxy }, | 176 prefs::kMaxConnectionsPerProxy }, |
| 177 { Value::TYPE_BOOLEAN, kPolicyHideWebStorePromo, | 177 { Value::TYPE_BOOLEAN, kPolicyHideWebStorePromo, |
| 178 prefs::kNTPHideWebStorePromo }, | 178 prefs::kNTPHideWebStorePromo }, |
| 179 { Value::TYPE_LIST, kPolicyURLBlacklist, | 179 { Value::TYPE_LIST, kPolicyURLBlacklist, |
| 180 prefs::kUrlBlacklist }, | 180 prefs::kUrlBlacklist }, |
| 181 { Value::TYPE_LIST, kPolicyURLWhitelist, | 181 { Value::TYPE_LIST, kPolicyURLWhitelist, |
| 182 prefs::kUrlWhitelist }, | 182 prefs::kUrlWhitelist }, |
| 183 { Value::TYPE_STRING, kPolicyEnterpriseWebStoreURL, |
| 184 prefs::kEnterpriseWebStoreURL }, |
| 185 { Value::TYPE_STRING, kPolicyEnterpriseWebStoreName, |
| 186 prefs::kEnterpriseWebStoreName }, |
| 183 | 187 |
| 184 #if defined(OS_CHROMEOS) | 188 #if defined(OS_CHROMEOS) |
| 185 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, | 189 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, |
| 186 prefs::kEnableScreenLock }, | 190 prefs::kEnableScreenLock }, |
| 187 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel, | 191 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel, |
| 188 prefs::kChromeOsReleaseChannel }, | 192 prefs::kChromeOsReleaseChannel }, |
| 189 #endif | 193 #endif |
| 190 }; | 194 }; |
| 191 | 195 |
| 192 } // namespace | 196 } // namespace |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 } | 244 } |
| 241 | 245 |
| 242 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 246 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
| 243 PolicyMap* policies) const { | 247 PolicyMap* policies) const { |
| 244 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 248 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
| 245 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 249 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
| 246 (*handler)->PrepareForDisplaying(policies); | 250 (*handler)->PrepareForDisplaying(policies); |
| 247 } | 251 } |
| 248 | 252 |
| 249 } // namespace policy | 253 } // namespace policy |
| OLD | NEW |