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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 #if defined(OS_CHROMEOS) | 594 #if defined(OS_CHROMEOS) |
595 { key::kSystemTimezoneAutomaticDetection, | 595 { key::kSystemTimezoneAutomaticDetection, |
596 prefs::kSystemTimezoneAutomaticDetectionPolicy, | 596 prefs::kSystemTimezoneAutomaticDetectionPolicy, |
597 base::Value::TYPE_INTEGER }, | 597 base::Value::TYPE_INTEGER }, |
598 #endif | 598 #endif |
599 | 599 |
600 { key::kTaskManagerEndProcessEnabled, | 600 { key::kTaskManagerEndProcessEnabled, |
601 prefs::kTaskManagerEndProcessEnabled, | 601 prefs::kTaskManagerEndProcessEnabled, |
602 base::Value::TYPE_BOOLEAN }, | 602 base::Value::TYPE_BOOLEAN }, |
603 | 603 |
| 604 { key::kNetworkThrottlingEnabled, |
| 605 prefs::kNetworkThrottlingEnabled, |
| 606 base::Value::TYPE_DICTIONARY }, |
| 607 |
604 #if defined(OS_CHROMEOS) | 608 #if defined(OS_CHROMEOS) |
605 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, | 609 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, |
606 #endif | 610 #endif |
607 }; | 611 }; |
608 | 612 |
609 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 613 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
610 public: | 614 public: |
611 ForceSafeSearchPolicyHandler() | 615 ForceSafeSearchPolicyHandler() |
612 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 616 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
613 base::Value::TYPE_BOOLEAN) {} | 617 base::Value::TYPE_BOOLEAN) {} |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 #endif // defined(OS_CHROMEOS) | 917 #endif // defined(OS_CHROMEOS) |
914 | 918 |
915 #if defined(ENABLE_PLUGINS) | 919 #if defined(ENABLE_PLUGINS) |
916 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); | 920 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); |
917 #endif // defined(ENABLE_PLUGINS) | 921 #endif // defined(ENABLE_PLUGINS) |
918 | 922 |
919 return handlers; | 923 return handlers; |
920 } | 924 } |
921 | 925 |
922 } // namespace policy | 926 } // namespace policy |
OLD | NEW |