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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 | 697 |
698 #if BUILDFLAG(ANDROID_JAVA_UI) | 698 #if BUILDFLAG(ANDROID_JAVA_UI) |
699 handlers->AddHandler( | 699 handlers->AddHandler( |
700 base::MakeUnique<ContextualSearchPolicyHandlerAndroid>()); | 700 base::MakeUnique<ContextualSearchPolicyHandlerAndroid>()); |
701 #endif | 701 #endif |
702 | 702 |
703 handlers->AddHandler(base::MakeUnique<FileSelectionDialogsPolicyHandler>()); | 703 handlers->AddHandler(base::MakeUnique<FileSelectionDialogsPolicyHandler>()); |
704 handlers->AddHandler(base::MakeUnique<JavascriptPolicyHandler>()); | 704 handlers->AddHandler(base::MakeUnique<JavascriptPolicyHandler>()); |
705 handlers->AddHandler(base::MakeUnique<NetworkPredictionPolicyHandler>()); | 705 handlers->AddHandler(base::MakeUnique<NetworkPredictionPolicyHandler>()); |
706 handlers->AddHandler(base::MakeUnique<RestoreOnStartupPolicyHandler>()); | 706 handlers->AddHandler(base::MakeUnique<RestoreOnStartupPolicyHandler>()); |
707 handlers->AddHandler(base::MakeUnique<sync_driver::SyncPolicyHandler>()); | 707 handlers->AddHandler(base::MakeUnique<syncer::SyncPolicyHandler>()); |
708 | 708 |
709 handlers->AddHandler(base::MakeUnique<StringMappingListPolicyHandler>( | 709 handlers->AddHandler(base::MakeUnique<StringMappingListPolicyHandler>( |
710 key::kEnableDeprecatedWebPlatformFeatures, | 710 key::kEnableDeprecatedWebPlatformFeatures, |
711 prefs::kEnableDeprecatedWebPlatformFeatures, | 711 prefs::kEnableDeprecatedWebPlatformFeatures, |
712 base::Bind(GetDeprecatedFeaturesMap))); | 712 base::Bind(GetDeprecatedFeaturesMap))); |
713 | 713 |
714 #if defined(ENABLE_EXTENSIONS) | 714 #if defined(ENABLE_EXTENSIONS) |
715 handlers->AddHandler(base::MakeUnique<extensions::ExtensionListPolicyHandler>( | 715 handlers->AddHandler(base::MakeUnique<extensions::ExtensionListPolicyHandler>( |
716 key::kExtensionInstallWhitelist, | 716 key::kExtensionInstallWhitelist, |
717 extensions::pref_names::kInstallAllowList, false)); | 717 extensions::pref_names::kInstallAllowList, false)); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 881 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
882 handlers->AddHandler( | 882 handlers->AddHandler( |
883 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema)); | 883 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema)); |
884 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler())); | 884 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler())); |
885 #endif // defined(OS_CHROMEOS) | 885 #endif // defined(OS_CHROMEOS) |
886 | 886 |
887 return handlers; | 887 return handlers; |
888 } | 888 } |
889 | 889 |
890 } // namespace policy | 890 } // namespace policy |
OLD | NEW |