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