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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 prefs::kSystemTimezoneAutomaticDetectionPolicy, | 596 prefs::kSystemTimezoneAutomaticDetectionPolicy, |
597 base::Value::TYPE_INTEGER }, | 597 base::Value::TYPE_INTEGER }, |
598 #endif | 598 #endif |
599 | 599 |
600 { key::kTaskManagerEndProcessEnabled, | 600 { key::kTaskManagerEndProcessEnabled, |
601 prefs::kTaskManagerEndProcessEnabled, | 601 prefs::kTaskManagerEndProcessEnabled, |
602 base::Value::TYPE_BOOLEAN }, | 602 base::Value::TYPE_BOOLEAN }, |
603 | 603 |
604 #if defined(OS_CHROMEOS) | 604 #if defined(OS_CHROMEOS) |
605 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, | 605 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, |
| 606 { key::kPinUnlockMinimumLength, prefs::kPinUnlockMinimumLength, |
| 607 base::Value::TYPE_INTEGER }, |
| 608 { key::kPinUnlockMaximumLength, prefs::kPinUnlockMaximumLength, |
| 609 base::Value::TYPE_INTEGER }, |
| 610 { key::kPinUnlockAllowWeakPins, prefs::kPinUnlockAllowWeakPins, |
| 611 base::Value::TYPE_BOOLEAN }, |
606 #endif | 612 #endif |
607 }; | 613 }; |
608 | 614 |
609 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 615 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
610 public: | 616 public: |
611 ForceSafeSearchPolicyHandler() | 617 ForceSafeSearchPolicyHandler() |
612 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 618 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
613 base::Value::TYPE_BOOLEAN) {} | 619 base::Value::TYPE_BOOLEAN) {} |
614 ~ForceSafeSearchPolicyHandler() override {} | 620 ~ForceSafeSearchPolicyHandler() override {} |
615 | 621 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 #endif // defined(OS_CHROMEOS) | 919 #endif // defined(OS_CHROMEOS) |
914 | 920 |
915 #if defined(ENABLE_PLUGINS) | 921 #if defined(ENABLE_PLUGINS) |
916 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); | 922 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); |
917 #endif // defined(ENABLE_PLUGINS) | 923 #endif // defined(ENABLE_PLUGINS) |
918 | 924 |
919 return handlers; | 925 return handlers; |
920 } | 926 } |
921 | 927 |
922 } // namespace policy | 928 } // namespace policy |
OLD | NEW |