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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 prefs::kSystemTimezoneAutomaticDetectionPolicy, | 595 prefs::kSystemTimezoneAutomaticDetectionPolicy, |
596 base::Value::TYPE_INTEGER }, | 596 base::Value::TYPE_INTEGER }, |
597 #endif | 597 #endif |
598 | 598 |
599 { key::kTaskManagerEndProcessEnabled, | 599 { key::kTaskManagerEndProcessEnabled, |
600 prefs::kTaskManagerEndProcessEnabled, | 600 prefs::kTaskManagerEndProcessEnabled, |
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, |
| 606 base::Value::TYPE_INTEGER }, |
| 607 { key::kPinUnlockMaximumLength, prefs::kPinUnlockMaximumLength, |
| 608 base::Value::TYPE_INTEGER }, |
605 #endif | 609 #endif |
606 }; | 610 }; |
607 | 611 |
608 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 612 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
609 public: | 613 public: |
610 ForceSafeSearchPolicyHandler() | 614 ForceSafeSearchPolicyHandler() |
611 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 615 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
612 base::Value::TYPE_BOOLEAN) {} | 616 base::Value::TYPE_BOOLEAN) {} |
613 ~ForceSafeSearchPolicyHandler() override {} | 617 ~ForceSafeSearchPolicyHandler() override {} |
614 | 618 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 885 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
882 handlers->AddHandler( | 886 handlers->AddHandler( |
883 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema)); | 887 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema)); |
884 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler())); | 888 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler())); |
885 #endif // defined(OS_CHROMEOS) | 889 #endif // defined(OS_CHROMEOS) |
886 | 890 |
887 return handlers; | 891 return handlers; |
888 } | 892 } |
889 | 893 |
890 } // namespace policy | 894 } // namespace policy |
OLD | NEW |