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