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 "chrome/browser/policy/configuration_policy_handler_list.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/prefs/pref_value_map.h" | 9 #include "base/prefs/pref_value_map.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 Value::TYPE_BOOLEAN }, | 284 Value::TYPE_BOOLEAN }, |
285 { key::kMaxConnectionsPerProxy, | 285 { key::kMaxConnectionsPerProxy, |
286 prefs::kMaxConnectionsPerProxy, | 286 prefs::kMaxConnectionsPerProxy, |
287 Value::TYPE_INTEGER }, | 287 Value::TYPE_INTEGER }, |
288 { key::kURLBlacklist, | 288 { key::kURLBlacklist, |
289 prefs::kUrlBlacklist, | 289 prefs::kUrlBlacklist, |
290 Value::TYPE_LIST }, | 290 Value::TYPE_LIST }, |
291 { key::kURLWhitelist, | 291 { key::kURLWhitelist, |
292 prefs::kUrlWhitelist, | 292 prefs::kUrlWhitelist, |
293 Value::TYPE_LIST }, | 293 Value::TYPE_LIST }, |
294 { key::kEnterpriseWebStoreURL, | |
295 prefs::kEnterpriseWebStoreURL, | |
296 Value::TYPE_STRING }, | |
297 { key::kEnterpriseWebStoreName, | |
298 prefs::kEnterpriseWebStoreName, | |
299 Value::TYPE_STRING }, | |
300 { key::kEnableMemoryInfo, | 294 { key::kEnableMemoryInfo, |
301 prefs::kEnableMemoryInfo, | 295 prefs::kEnableMemoryInfo, |
302 Value::TYPE_BOOLEAN }, | 296 Value::TYPE_BOOLEAN }, |
303 { key::kRestrictSigninToPattern, | 297 { key::kRestrictSigninToPattern, |
304 prefs::kGoogleServicesUsernamePattern, | 298 prefs::kGoogleServicesUsernamePattern, |
305 Value::TYPE_STRING }, | 299 Value::TYPE_STRING }, |
306 { key::kDefaultMediaStreamSetting, | 300 { key::kDefaultMediaStreamSetting, |
307 prefs::kManagedDefaultMediaStreamSetting, | 301 prefs::kManagedDefaultMediaStreamSetting, |
308 Value::TYPE_INTEGER }, | 302 Value::TYPE_INTEGER }, |
309 { key::kDisableSafeBrowsingProceedAnyway, | 303 { key::kDisableSafeBrowsingProceedAnyway, |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 } | 553 } |
560 | 554 |
561 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 555 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
562 PolicyMap* policies) const { | 556 PolicyMap* policies) const { |
563 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 557 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
564 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 558 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
565 (*handler)->PrepareForDisplaying(policies); | 559 (*handler)->PrepareForDisplaying(policies); |
566 } | 560 } |
567 | 561 |
568 } // namespace policy | 562 } // namespace policy |
OLD | NEW |