| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 Value::TYPE_INTEGER }, | 338 Value::TYPE_INTEGER }, |
| 339 { key::kContentPackManualBehaviorHosts, | 339 { key::kContentPackManualBehaviorHosts, |
| 340 prefs::kManagedModeManualHosts, | 340 prefs::kManagedModeManualHosts, |
| 341 Value::TYPE_DICTIONARY }, | 341 Value::TYPE_DICTIONARY }, |
| 342 { key::kContentPackManualBehaviorURLs, | 342 { key::kContentPackManualBehaviorURLs, |
| 343 prefs::kManagedModeManualURLs, | 343 prefs::kManagedModeManualURLs, |
| 344 Value::TYPE_DICTIONARY }, | 344 Value::TYPE_DICTIONARY }, |
| 345 { key::kSupervisedUserCreationEnabled, | 345 { key::kSupervisedUserCreationEnabled, |
| 346 prefs::kManagedUserCreationAllowed, | 346 prefs::kManagedUserCreationAllowed, |
| 347 Value::TYPE_BOOLEAN }, | 347 Value::TYPE_BOOLEAN }, |
| 348 { key::kAllowFullscreen, |
| 349 prefs::kAllowFullscreen, |
| 350 Value::TYPE_BOOLEAN }, |
| 348 | 351 |
| 349 #if defined(OS_CHROMEOS) | 352 #if defined(OS_CHROMEOS) |
| 350 { key::kChromeOsLockOnIdleSuspend, | 353 { key::kChromeOsLockOnIdleSuspend, |
| 351 prefs::kEnableScreenLock, | 354 prefs::kEnableScreenLock, |
| 352 Value::TYPE_BOOLEAN }, | 355 Value::TYPE_BOOLEAN }, |
| 353 { key::kChromeOsReleaseChannel, | 356 { key::kChromeOsReleaseChannel, |
| 354 prefs::kChromeOsReleaseChannel, | 357 prefs::kChromeOsReleaseChannel, |
| 355 Value::TYPE_STRING }, | 358 Value::TYPE_STRING }, |
| 356 { key::kDriveDisabled, | 359 { key::kDriveDisabled, |
| 357 prefs::kDisableDrive, | 360 prefs::kDisableDrive, |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 } | 616 } |
| 614 | 617 |
| 615 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 618 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
| 616 PolicyMap* policies) const { | 619 PolicyMap* policies) const { |
| 617 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 620 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
| 618 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 621 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
| 619 (*handler)->PrepareForDisplaying(policies); | 622 (*handler)->PrepareForDisplaying(policies); |
| 620 } | 623 } |
| 621 | 624 |
| 622 } // namespace policy | 625 } // namespace policy |
| OLD | NEW |