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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 { Value::TYPE_BOOLEAN, kPolicyImportSavedPasswords, | 181 { Value::TYPE_BOOLEAN, kPolicyImportSavedPasswords, |
182 prefs::kImportSavedPasswords }, | 182 prefs::kImportSavedPasswords }, |
183 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy, | 183 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy, |
184 prefs::kMaxConnectionsPerProxy }, | 184 prefs::kMaxConnectionsPerProxy }, |
185 { Value::TYPE_BOOLEAN, kPolicyHideWebStorePromo, | 185 { Value::TYPE_BOOLEAN, kPolicyHideWebStorePromo, |
186 prefs::kNTPHideWebStorePromo }, | 186 prefs::kNTPHideWebStorePromo }, |
187 { Value::TYPE_LIST, kPolicyURLBlacklist, | 187 { Value::TYPE_LIST, kPolicyURLBlacklist, |
188 prefs::kUrlBlacklist }, | 188 prefs::kUrlBlacklist }, |
189 { Value::TYPE_LIST, kPolicyURLWhitelist, | 189 { Value::TYPE_LIST, kPolicyURLWhitelist, |
190 prefs::kUrlWhitelist }, | 190 prefs::kUrlWhitelist }, |
| 191 { Value::TYPE_STRING, kPolicyEnterpriseWebStoreURL, |
| 192 prefs::kEnterpriseWebStoreURL }, |
| 193 { Value::TYPE_STRING, kPolicyEnterpriseWebStoreName, |
| 194 prefs::kEnterpriseWebStoreName }, |
191 | 195 |
192 #if defined(OS_CHROMEOS) | 196 #if defined(OS_CHROMEOS) |
193 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, | 197 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, |
194 prefs::kEnableScreenLock }, | 198 prefs::kEnableScreenLock }, |
195 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel, | 199 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel, |
196 prefs::kChromeOsReleaseChannel }, | 200 prefs::kChromeOsReleaseChannel }, |
197 #endif | 201 #endif |
198 }; | 202 }; |
199 | 203 |
200 } // namespace | 204 } // namespace |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 } | 261 } |
258 | 262 |
259 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 263 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
260 PolicyMap* policies) const { | 264 PolicyMap* policies) const { |
261 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 265 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
262 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 266 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
263 (*handler)->PrepareForDisplaying(policies); | 267 (*handler)->PrepareForDisplaying(policies); |
264 } | 268 } |
265 | 269 |
266 } // namespace policy | 270 } // namespace policy |
OLD | NEW |