| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "components/policy/core/common/policy_details.h" | 43 #include "components/policy/core/common/policy_details.h" |
| 44 #include "components/policy/core/common/policy_map.h" | 44 #include "components/policy/core/common/policy_map.h" |
| 45 #include "components/policy/core/common/policy_pref_names.h" | 45 #include "components/policy/core/common/policy_pref_names.h" |
| 46 #include "components/policy/core/common/schema.h" | 46 #include "components/policy/core/common/schema.h" |
| 47 #include "components/policy/policy_constants.h" | 47 #include "components/policy/policy_constants.h" |
| 48 #include "components/prefs/pref_value_map.h" | 48 #include "components/prefs/pref_value_map.h" |
| 49 #include "components/search_engines/default_search_policy_handler.h" | 49 #include "components/search_engines/default_search_policy_handler.h" |
| 50 #include "components/signin/core/common/signin_pref_names.h" | 50 #include "components/signin/core/common/signin_pref_names.h" |
| 51 #include "components/spellcheck/spellcheck_build_features.h" | 51 #include "components/spellcheck/spellcheck_build_features.h" |
| 52 #include "components/ssl_config/ssl_config_prefs.h" | 52 #include "components/ssl_config/ssl_config_prefs.h" |
| 53 #include "components/sync/base/pref_names.h" |
| 53 #include "components/sync/driver/sync_policy_handler.h" | 54 #include "components/sync/driver/sync_policy_handler.h" |
| 54 #include "components/translate/core/common/translate_pref_names.h" | 55 #include "components/translate/core/common/translate_pref_names.h" |
| 55 #include "components/variations/pref_names.h" | 56 #include "components/variations/pref_names.h" |
| 56 #include "extensions/features/features.h" | 57 #include "extensions/features/features.h" |
| 57 #include "media/media_features.h" | 58 #include "media/media_features.h" |
| 58 #include "ppapi/features/features.h" | 59 #include "ppapi/features/features.h" |
| 59 | 60 |
| 60 #if BUILDFLAG(ANDROID_JAVA_UI) | 61 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 61 #include "chrome/browser/search/contextual_search_policy_handler_android.h" | 62 #include "chrome/browser/search/contextual_search_policy_handler_android.h" |
| 62 #endif | 63 #endif |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 | 596 |
| 596 { key::kTaskManagerEndProcessEnabled, | 597 { key::kTaskManagerEndProcessEnabled, |
| 597 prefs::kTaskManagerEndProcessEnabled, | 598 prefs::kTaskManagerEndProcessEnabled, |
| 598 base::Value::Type::BOOLEAN }, | 599 base::Value::Type::BOOLEAN }, |
| 599 | 600 |
| 600 #if defined(OS_CHROMEOS) | 601 #if defined(OS_CHROMEOS) |
| 601 { key::kNetworkThrottlingEnabled, | 602 { key::kNetworkThrottlingEnabled, |
| 602 prefs::kNetworkThrottlingEnabled, | 603 prefs::kNetworkThrottlingEnabled, |
| 603 base::Value::Type::DICTIONARY }, | 604 base::Value::Type::DICTIONARY }, |
| 604 | 605 |
| 605 { key::kAllowScreenLock, prefs::kAllowScreenLock, | 606 { key::kAllowScreenLock, |
| 607 prefs::kAllowScreenLock, |
| 606 base::Value::Type::BOOLEAN }, | 608 base::Value::Type::BOOLEAN }, |
| 607 | 609 |
| 608 { key::kQuickUnlockModeWhitelist, prefs::kQuickUnlockModeWhitelist, | 610 { key::kQuickUnlockModeWhitelist, |
| 611 prefs::kQuickUnlockModeWhitelist, |
| 609 base::Value::Type::LIST }, | 612 base::Value::Type::LIST }, |
| 610 { key::kQuickUnlockTimeout, prefs::kQuickUnlockTimeout, | 613 { key::kQuickUnlockTimeout, |
| 614 prefs::kQuickUnlockTimeout, |
| 611 base::Value::Type::INTEGER }, | 615 base::Value::Type::INTEGER }, |
| 612 { key::kPinUnlockMinimumLength, prefs::kPinUnlockMinimumLength, | 616 { key::kPinUnlockMinimumLength, |
| 617 prefs::kPinUnlockMinimumLength, |
| 613 base::Value::Type::INTEGER }, | 618 base::Value::Type::INTEGER }, |
| 614 { key::kPinUnlockMaximumLength, prefs::kPinUnlockMaximumLength, | 619 { key::kPinUnlockMaximumLength, |
| 620 prefs::kPinUnlockMaximumLength, |
| 615 base::Value::Type::INTEGER }, | 621 base::Value::Type::INTEGER }, |
| 616 { key::kPinUnlockWeakPinsAllowed, prefs::kPinUnlockWeakPinsAllowed, | 622 { key::kPinUnlockWeakPinsAllowed, |
| 623 prefs::kPinUnlockWeakPinsAllowed, |
| 617 base::Value::Type::BOOLEAN }, | 624 base::Value::Type::BOOLEAN }, |
| 618 #endif | 625 #endif |
| 626 |
| 627 { key::kRoamingProfileSupportEnabled, |
| 628 syncer::prefs::kEnableLocalSyncBackend, |
| 629 base::Value::Type::BOOLEAN }, |
| 630 { key::kRoamingProfileLocation, |
| 631 syncer::prefs::kLocalSyncBackendDir, |
| 632 base::Value::Type::STRING }, |
| 619 }; | 633 }; |
| 620 | 634 |
| 621 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { | 635 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { |
| 622 public: | 636 public: |
| 623 ForceSafeSearchPolicyHandler() | 637 ForceSafeSearchPolicyHandler() |
| 624 : TypeCheckingPolicyHandler(key::kForceSafeSearch, | 638 : TypeCheckingPolicyHandler(key::kForceSafeSearch, |
| 625 base::Value::Type::BOOLEAN) {} | 639 base::Value::Type::BOOLEAN) {} |
| 626 ~ForceSafeSearchPolicyHandler() override {} | 640 ~ForceSafeSearchPolicyHandler() override {} |
| 627 | 641 |
| 628 // ConfigurationPolicyHandler implementation: | 642 // ConfigurationPolicyHandler implementation: |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 #endif // defined(OS_CHROMEOS) | 992 #endif // defined(OS_CHROMEOS) |
| 979 | 993 |
| 980 #if BUILDFLAG(ENABLE_PLUGINS) | 994 #if BUILDFLAG(ENABLE_PLUGINS) |
| 981 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); | 995 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); |
| 982 #endif // BUILDFLAG(ENABLE_PLUGINS) | 996 #endif // BUILDFLAG(ENABLE_PLUGINS) |
| 983 | 997 |
| 984 return handlers; | 998 return handlers; |
| 985 } | 999 } |
| 986 | 1000 |
| 987 } // namespace policy | 1001 } // namespace policy |
| OLD | NEW |