| 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 prefs::kNetworkThrottlingEnabled, | 609 prefs::kNetworkThrottlingEnabled, |
| 610 base::Value::Type::DICTIONARY }, | 610 base::Value::Type::DICTIONARY }, |
| 611 | 611 |
| 612 { key::kAllowScreenLock, prefs::kAllowScreenLock, | 612 { key::kAllowScreenLock, prefs::kAllowScreenLock, |
| 613 base::Value::Type::BOOLEAN }, | 613 base::Value::Type::BOOLEAN }, |
| 614 | 614 |
| 615 { key::kQuickUnlockModeWhitelist, prefs::kQuickUnlockModeWhitelist, | 615 { key::kQuickUnlockModeWhitelist, prefs::kQuickUnlockModeWhitelist, |
| 616 base::Value::Type::LIST }, | 616 base::Value::Type::LIST }, |
| 617 { key::kQuickUnlockTimeout, prefs::kQuickUnlockTimeout, | 617 { key::kQuickUnlockTimeout, prefs::kQuickUnlockTimeout, |
| 618 base::Value::Type::INTEGER }, | 618 base::Value::Type::INTEGER }, |
| 619 { key::kPinUnlockMinimumLength, prefs::kPinUnlockMinimumLength, |
| 620 base::Value::Type::INTEGER }, |
| 621 { key::kPinUnlockMaximumLength, prefs::kPinUnlockMaximumLength, |
| 622 base::Value::Type::INTEGER }, |
| 623 { key::kPinUnlockWeakPinsAllowed, prefs::kPinUnlockWeakPinsAllowed, |
| 624 base::Value::Type::BOOLEAN }, |
| 619 #endif | 625 #endif |
| 620 }; | 626 }; |
| 621 | 627 |
| 622 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 628 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
| 623 public: | 629 public: |
| 624 ForceSafeSearchPolicyHandler() | 630 ForceSafeSearchPolicyHandler() |
| 625 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 631 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
| 626 base::Value::Type::BOOLEAN) {} | 632 base::Value::Type::BOOLEAN) {} |
| 627 ~ForceSafeSearchPolicyHandler() override {} | 633 ~ForceSafeSearchPolicyHandler() override {} |
| 628 | 634 |
| (...skipping 299 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 |