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