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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 Value::TYPE_BOOLEAN }, | 287 Value::TYPE_BOOLEAN }, |
288 { key::kMaxConnectionsPerProxy, | 288 { key::kMaxConnectionsPerProxy, |
289 prefs::kMaxConnectionsPerProxy, | 289 prefs::kMaxConnectionsPerProxy, |
290 Value::TYPE_INTEGER }, | 290 Value::TYPE_INTEGER }, |
291 { key::kURLBlacklist, | 291 { key::kURLBlacklist, |
292 prefs::kUrlBlacklist, | 292 prefs::kUrlBlacklist, |
293 Value::TYPE_LIST }, | 293 Value::TYPE_LIST }, |
294 { key::kURLWhitelist, | 294 { key::kURLWhitelist, |
295 prefs::kUrlWhitelist, | 295 prefs::kUrlWhitelist, |
296 Value::TYPE_LIST }, | 296 Value::TYPE_LIST }, |
297 { key::kEnterpriseWebStoreURL, | |
298 prefs::kEnterpriseWebStoreURL, | |
299 Value::TYPE_STRING }, | |
300 { key::kEnterpriseWebStoreName, | |
301 prefs::kEnterpriseWebStoreName, | |
302 Value::TYPE_STRING }, | |
303 { key::kEnableMemoryInfo, | 297 { key::kEnableMemoryInfo, |
304 prefs::kEnableMemoryInfo, | 298 prefs::kEnableMemoryInfo, |
305 Value::TYPE_BOOLEAN }, | 299 Value::TYPE_BOOLEAN }, |
306 { key::kRestrictSigninToPattern, | 300 { key::kRestrictSigninToPattern, |
307 prefs::kGoogleServicesUsernamePattern, | 301 prefs::kGoogleServicesUsernamePattern, |
308 Value::TYPE_STRING }, | 302 Value::TYPE_STRING }, |
309 { key::kDefaultMediaStreamSetting, | 303 { key::kDefaultMediaStreamSetting, |
310 prefs::kManagedDefaultMediaStreamSetting, | 304 prefs::kManagedDefaultMediaStreamSetting, |
311 Value::TYPE_INTEGER }, | 305 Value::TYPE_INTEGER }, |
312 { key::kDisableSafeBrowsingProceedAnyway, | 306 { key::kDisableSafeBrowsingProceedAnyway, |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 } | 555 } |
562 | 556 |
563 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 557 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
564 PolicyMap* policies) const { | 558 PolicyMap* policies) const { |
565 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 559 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
566 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 560 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
567 (*handler)->PrepareForDisplaying(policies); | 561 (*handler)->PrepareForDisplaying(policies); |
568 } | 562 } |
569 | 563 |
570 } // namespace policy | 564 } // namespace policy |
OLD | NEW |