| 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 prefs::kSystemTimezoneAutomaticDetectionPolicy, | 597 prefs::kSystemTimezoneAutomaticDetectionPolicy, |
| 598 base::Value::TYPE_INTEGER }, | 598 base::Value::TYPE_INTEGER }, |
| 599 #endif | 599 #endif |
| 600 | 600 |
| 601 { key::kTaskManagerEndProcessEnabled, | 601 { key::kTaskManagerEndProcessEnabled, |
| 602 prefs::kTaskManagerEndProcessEnabled, | 602 prefs::kTaskManagerEndProcessEnabled, |
| 603 base::Value::TYPE_BOOLEAN }, | 603 base::Value::TYPE_BOOLEAN }, |
| 604 | 604 |
| 605 #if defined(OS_CHROMEOS) | 605 #if defined(OS_CHROMEOS) |
| 606 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, | 606 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, |
| 607 |
| 608 { key::kQuickUnlockModeWhitelist, prefs::kQuickUnlockModeWhitelist, |
| 609 base::Value::TYPE_LIST }, |
| 610 { key::kQuickUnlockTimeout, prefs::kQuickUnlockTimeout, |
| 611 base::Value::TYPE_INTEGER }, |
| 607 #endif | 612 #endif |
| 608 }; | 613 }; |
| 609 | 614 |
| 610 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 615 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
| 611 public: | 616 public: |
| 612 ForceSafeSearchPolicyHandler() | 617 ForceSafeSearchPolicyHandler() |
| 613 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 618 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
| 614 base::Value::TYPE_BOOLEAN) {} | 619 base::Value::TYPE_BOOLEAN) {} |
| 615 ~ForceSafeSearchPolicyHandler() override {} | 620 ~ForceSafeSearchPolicyHandler() override {} |
| 616 | 621 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 #endif // defined(OS_CHROMEOS) | 936 #endif // defined(OS_CHROMEOS) |
| 932 | 937 |
| 933 #if defined(ENABLE_PLUGINS) | 938 #if defined(ENABLE_PLUGINS) |
| 934 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); | 939 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); |
| 935 #endif // defined(ENABLE_PLUGINS) | 940 #endif // defined(ENABLE_PLUGINS) |
| 936 | 941 |
| 937 return handlers; | 942 return handlers; |
| 938 } | 943 } |
| 939 | 944 |
| 940 } // namespace policy | 945 } // namespace policy |
| OLD | NEW |