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