| 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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 prefs::kSystemTimezoneAutomaticDetectionPolicy, | 599 prefs::kSystemTimezoneAutomaticDetectionPolicy, |
| 600 base::Value::TYPE_INTEGER }, | 600 base::Value::TYPE_INTEGER }, |
| 601 #endif | 601 #endif |
| 602 | 602 |
| 603 { key::kTaskManagerEndProcessEnabled, | 603 { key::kTaskManagerEndProcessEnabled, |
| 604 prefs::kTaskManagerEndProcessEnabled, | 604 prefs::kTaskManagerEndProcessEnabled, |
| 605 base::Value::TYPE_BOOLEAN }, | 605 base::Value::TYPE_BOOLEAN }, |
| 606 | 606 |
| 607 #if defined(OS_CHROMEOS) | 607 #if defined(OS_CHROMEOS) |
| 608 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, | 608 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, |
| 609 |
| 610 { key::kQuickUnlockModeWhitelist, prefs::kQuickUnlockModeWhitelist, |
| 611 base::Value::TYPE_LIST }, |
| 612 { key::kQuickUnlockTimeout, prefs::kQuickUnlockTimeout, |
| 613 base::Value::TYPE_INTEGER }, |
| 609 #endif | 614 #endif |
| 610 }; | 615 }; |
| 611 | 616 |
| 612 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 617 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
| 613 public: | 618 public: |
| 614 ForceSafeSearchPolicyHandler() | 619 ForceSafeSearchPolicyHandler() |
| 615 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 620 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
| 616 base::Value::TYPE_BOOLEAN) {} | 621 base::Value::TYPE_BOOLEAN) {} |
| 617 ~ForceSafeSearchPolicyHandler() override {} | 622 ~ForceSafeSearchPolicyHandler() override {} |
| 618 | 623 |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 #endif // defined(OS_CHROMEOS) | 921 #endif // defined(OS_CHROMEOS) |
| 917 | 922 |
| 918 #if defined(ENABLE_PLUGINS) | 923 #if defined(ENABLE_PLUGINS) |
| 919 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); | 924 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); |
| 920 #endif // defined(ENABLE_PLUGINS) | 925 #endif // defined(ENABLE_PLUGINS) |
| 921 | 926 |
| 922 return handlers; | 927 return handlers; |
| 923 } | 928 } |
| 924 | 929 |
| 925 } // namespace policy | 930 } // namespace policy |
| OLD | NEW |