| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_factory.h" | 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h" |
| 6 | 6 |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 base::Value::TYPE_BOOLEAN }, | 601 base::Value::TYPE_BOOLEAN }, |
| 602 | 602 |
| 603 #if defined(OS_CHROMEOS) | 603 #if defined(OS_CHROMEOS) |
| 604 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, | 604 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, |
| 605 { key::kPinUnlockMinimumLength, prefs::kPinUnlockMinimumLength, | 605 { key::kPinUnlockMinimumLength, prefs::kPinUnlockMinimumLength, |
| 606 base::Value::TYPE_INTEGER }, | 606 base::Value::TYPE_INTEGER }, |
| 607 { key::kPinUnlockMaximumLength, prefs::kPinUnlockMaximumLength, | 607 { key::kPinUnlockMaximumLength, prefs::kPinUnlockMaximumLength, |
| 608 base::Value::TYPE_INTEGER }, | 608 base::Value::TYPE_INTEGER }, |
| 609 { key::kPinUnlockAllowEasyPins, prefs::kPinUnlockAllowEasyPins, | 609 { key::kPinUnlockAllowEasyPins, prefs::kPinUnlockAllowEasyPins, |
| 610 base::Value::TYPE_BOOLEAN }, | 610 base::Value::TYPE_BOOLEAN }, |
| 611 { key::kScreenUnlockWhitelist, prefs::kScreenUnlockWhitelist, |
| 612 base::Value::TYPE_LIST }, |
| 613 { key::kScreenUnlockPasswordConfirmationFrequency, |
| 614 prefs::kScreenUnlockPasswordConfirmationFrequency, |
| 615 base::Value::TYPE_INTEGER }, |
| 611 #endif | 616 #endif |
| 612 }; | 617 }; |
| 613 | 618 |
| 614 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 619 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
| 615 public: | 620 public: |
| 616 ForceSafeSearchPolicyHandler() | 621 ForceSafeSearchPolicyHandler() |
| 617 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 622 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
| 618 base::Value::TYPE_BOOLEAN) {} | 623 base::Value::TYPE_BOOLEAN) {} |
| 619 ~ForceSafeSearchPolicyHandler() override {} | 624 ~ForceSafeSearchPolicyHandler() override {} |
| 620 | 625 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 892 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
| 888 handlers->AddHandler( | 893 handlers->AddHandler( |
| 889 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema)); | 894 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema)); |
| 890 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler())); | 895 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler())); |
| 891 #endif // defined(OS_CHROMEOS) | 896 #endif // defined(OS_CHROMEOS) |
| 892 | 897 |
| 893 return handlers; | 898 return handlers; |
| 894 } | 899 } |
| 895 | 900 |
| 896 } // namespace policy | 901 } // namespace policy |
| OLD | NEW |