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 #if defined(OS_CHROMEOS) | 597 #if defined(OS_CHROMEOS) |
598 { key::kSystemTimezoneAutomaticDetection, | 598 { key::kSystemTimezoneAutomaticDetection, |
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 { key::kNetworkThrottlingEnabled, | |
Lei Zhang
2016/11/04 22:11:57
Also needs to be ifdef...
| |
608 prefs::kNetworkThrottlingEnabled, | |
609 base::Value::TYPE_DICTIONARY }, | |
610 | |
607 #if defined(OS_CHROMEOS) | 611 #if defined(OS_CHROMEOS) |
608 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, | 612 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, |
609 #endif | 613 #endif |
610 }; | 614 }; |
611 | 615 |
612 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 616 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
613 public: | 617 public: |
614 ForceSafeSearchPolicyHandler() | 618 ForceSafeSearchPolicyHandler() |
615 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 619 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
616 base::Value::TYPE_BOOLEAN) {} | 620 base::Value::TYPE_BOOLEAN) {} |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
916 #endif // defined(OS_CHROMEOS) | 920 #endif // defined(OS_CHROMEOS) |
917 | 921 |
918 #if defined(ENABLE_PLUGINS) | 922 #if defined(ENABLE_PLUGINS) |
919 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); | 923 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); |
920 #endif // defined(ENABLE_PLUGINS) | 924 #endif // defined(ENABLE_PLUGINS) |
921 | 925 |
922 return handlers; | 926 return handlers; |
923 } | 927 } |
924 | 928 |
925 } // namespace policy | 929 } // namespace policy |
OLD | NEW |