| 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::kPinUnlockAllowWeakPins, prefs::kPinUnlockAllowWeakPins, |
| 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 #endif // defined(OS_CHROMEOS) | 933 #endif // defined(OS_CHROMEOS) |
| 928 | 934 |
| 929 #if defined(ENABLE_PLUGINS) | 935 #if defined(ENABLE_PLUGINS) |
| 930 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); | 936 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); |
| 931 #endif // defined(ENABLE_PLUGINS) | 937 #endif // defined(ENABLE_PLUGINS) |
| 932 | 938 |
| 933 return handlers; | 939 return handlers; |
| 934 } | 940 } |
| 935 | 941 |
| 936 } // namespace policy | 942 } // namespace policy |
| OLD | NEW |