| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "components/policy/policy_constants.h" | 44 #include "components/policy/policy_constants.h" |
| 45 #include "components/prefs/pref_value_map.h" | 45 #include "components/prefs/pref_value_map.h" |
| 46 #include "components/search_engines/default_search_policy_handler.h" | 46 #include "components/search_engines/default_search_policy_handler.h" |
| 47 #include "components/signin/core/common/signin_pref_names.h" | 47 #include "components/signin/core/common/signin_pref_names.h" |
| 48 #include "components/spellcheck/spellcheck_build_features.h" | 48 #include "components/spellcheck/spellcheck_build_features.h" |
| 49 #include "components/ssl_config/ssl_config_prefs.h" | 49 #include "components/ssl_config/ssl_config_prefs.h" |
| 50 #include "components/sync/driver/sync_policy_handler.h" | 50 #include "components/sync/driver/sync_policy_handler.h" |
| 51 #include "components/translate/core/common/translate_pref_names.h" | 51 #include "components/translate/core/common/translate_pref_names.h" |
| 52 #include "components/variations/pref_names.h" | 52 #include "components/variations/pref_names.h" |
| 53 #include "extensions/features/features.h" | 53 #include "extensions/features/features.h" |
| 54 #include "ppapi/features/features.h" |
| 54 | 55 |
| 55 #if BUILDFLAG(ANDROID_JAVA_UI) | 56 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 56 #include "chrome/browser/search/contextual_search_policy_handler_android.h" | 57 #include "chrome/browser/search/contextual_search_policy_handler_android.h" |
| 57 #endif | 58 #endif |
| 58 | 59 |
| 59 #if defined(OS_CHROMEOS) | 60 #if defined(OS_CHROMEOS) |
| 60 #include "ash/common/accessibility_types.h" | 61 #include "ash/common/accessibility_types.h" |
| 61 #include "chrome/browser/chromeos/platform_keys/key_permissions_policy_handler.h
" | 62 #include "chrome/browser/chromeos/platform_keys/key_permissions_policy_handler.h
" |
| 62 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
" | 63 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
" |
| 63 #include "chrome/browser/policy/default_geolocation_policy_handler.h" | 64 #include "chrome/browser/policy/default_geolocation_policy_handler.h" |
| 64 #include "chromeos/chromeos_pref_names.h" | 65 #include "chromeos/chromeos_pref_names.h" |
| 65 #include "chromeos/dbus/power_policy_controller.h" | 66 #include "chromeos/dbus/power_policy_controller.h" |
| 66 #include "components/drive/drive_pref_names.h" | 67 #include "components/drive/drive_pref_names.h" |
| 67 #include "components/user_manager/user.h" | 68 #include "components/user_manager/user.h" |
| 68 #include "components/user_manager/user_manager.h" | 69 #include "components/user_manager/user_manager.h" |
| 69 #endif | 70 #endif |
| 70 | 71 |
| 71 #if !defined(OS_ANDROID) | 72 #if !defined(OS_ANDROID) |
| 72 #include "chrome/browser/download/download_dir_policy_handler.h" | 73 #include "chrome/browser/download/download_dir_policy_handler.h" |
| 73 #endif | 74 #endif |
| 74 | 75 |
| 75 #if BUILDFLAG(ENABLE_EXTENSIONS) | 76 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 76 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle
r.h" | 77 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle
r.h" |
| 77 #include "chrome/browser/extensions/extension_management_constants.h" | 78 #include "chrome/browser/extensions/extension_management_constants.h" |
| 78 #include "chrome/browser/extensions/policy_handlers.h" | 79 #include "chrome/browser/extensions/policy_handlers.h" |
| 79 #include "extensions/browser/pref_names.h" | 80 #include "extensions/browser/pref_names.h" |
| 80 #include "extensions/common/manifest.h" | 81 #include "extensions/common/manifest.h" |
| 81 #endif | 82 #endif |
| 82 | 83 |
| 83 #if defined(ENABLE_PLUGINS) | 84 #if BUILDFLAG(ENABLE_PLUGINS) |
| 84 #include "chrome/browser/plugins/plugin_policy_handler.h" | 85 #include "chrome/browser/plugins/plugin_policy_handler.h" |
| 85 #endif | 86 #endif |
| 86 | 87 |
| 87 #if BUILDFLAG(ENABLE_SPELLCHECK) | 88 #if BUILDFLAG(ENABLE_SPELLCHECK) |
| 88 #include "components/spellcheck/browser/pref_names.h" | 89 #include "components/spellcheck/browser/pref_names.h" |
| 89 #endif | 90 #endif |
| 90 | 91 |
| 91 namespace policy { | 92 namespace policy { |
| 92 | 93 |
| 93 namespace { | 94 namespace { |
| (...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 base::MakeUnique<ExternalDataPolicyHandler>(key::kWallpaperImage)); | 920 base::MakeUnique<ExternalDataPolicyHandler>(key::kWallpaperImage)); |
| 920 handlers->AddHandler(base::WrapUnique(new SimpleSchemaValidatingPolicyHandler( | 921 handlers->AddHandler(base::WrapUnique(new SimpleSchemaValidatingPolicyHandler( |
| 921 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT, | 922 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT, |
| 922 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 923 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
| 923 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 924 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
| 924 handlers->AddHandler( | 925 handlers->AddHandler( |
| 925 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema)); | 926 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema)); |
| 926 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler())); | 927 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler())); |
| 927 #endif // defined(OS_CHROMEOS) | 928 #endif // defined(OS_CHROMEOS) |
| 928 | 929 |
| 929 #if defined(ENABLE_PLUGINS) | 930 #if BUILDFLAG(ENABLE_PLUGINS) |
| 930 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); | 931 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); |
| 931 #endif // defined(ENABLE_PLUGINS) | 932 #endif // BUILDFLAG(ENABLE_PLUGINS) |
| 932 | 933 |
| 933 return handlers; | 934 return handlers; |
| 934 } | 935 } |
| 935 | 936 |
| 936 } // namespace policy | 937 } // namespace policy |
| OLD | NEW |