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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 { key::kNetworkThrottlingEnabled, | 608 { key::kNetworkThrottlingEnabled, |
609 prefs::kNetworkThrottlingEnabled, | 609 prefs::kNetworkThrottlingEnabled, |
610 base::Value::TYPE_DICTIONARY }, | 610 base::Value::TYPE_DICTIONARY }, |
611 | 611 |
612 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, | 612 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, |
613 | 613 |
614 { key::kQuickUnlockModeWhitelist, prefs::kQuickUnlockModeWhitelist, | 614 { key::kQuickUnlockModeWhitelist, prefs::kQuickUnlockModeWhitelist, |
615 base::Value::TYPE_LIST }, | 615 base::Value::TYPE_LIST }, |
616 { key::kQuickUnlockTimeout, prefs::kQuickUnlockTimeout, | 616 { key::kQuickUnlockTimeout, prefs::kQuickUnlockTimeout, |
617 base::Value::TYPE_INTEGER }, | 617 base::Value::TYPE_INTEGER }, |
| 618 { key::kPinUnlockMinimumLength, prefs::kPinUnlockMinimumLength, |
| 619 base::Value::TYPE_INTEGER }, |
| 620 { key::kPinUnlockMaximumLength, prefs::kPinUnlockMaximumLength, |
| 621 base::Value::TYPE_INTEGER }, |
| 622 { key::kPinUnlockAllowWeakPins, prefs::kPinUnlockAllowWeakPins, |
| 623 base::Value::TYPE_BOOLEAN }, |
618 #endif | 624 #endif |
619 }; | 625 }; |
620 | 626 |
621 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 627 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
622 public: | 628 public: |
623 ForceSafeSearchPolicyHandler() | 629 ForceSafeSearchPolicyHandler() |
624 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 630 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
625 base::Value::TYPE_BOOLEAN) {} | 631 base::Value::TYPE_BOOLEAN) {} |
626 ~ForceSafeSearchPolicyHandler() override {} | 632 ~ForceSafeSearchPolicyHandler() override {} |
627 | 633 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 #endif // defined(OS_CHROMEOS) | 931 #endif // defined(OS_CHROMEOS) |
926 | 932 |
927 #if defined(ENABLE_PLUGINS) | 933 #if defined(ENABLE_PLUGINS) |
928 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); | 934 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); |
929 #endif // defined(ENABLE_PLUGINS) | 935 #endif // defined(ENABLE_PLUGINS) |
930 | 936 |
931 return handlers; | 937 return handlers; |
932 } | 938 } |
933 | 939 |
934 } // namespace policy | 940 } // namespace policy |
OLD | NEW |