Chromium Code Reviews| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 #include "components/translate/core/common/translate_pref_names.h" | 48 #include "components/translate/core/common/translate_pref_names.h" |
| 49 #include "components/variations/pref_names.h" | 49 #include "components/variations/pref_names.h" |
| 50 #include "policy/policy_constants.h" | 50 #include "policy/policy_constants.h" |
| 51 | 51 |
| 52 #if BUILDFLAG(ANDROID_JAVA_UI) | 52 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 53 #include "chrome/browser/search/contextual_search_policy_handler_android.h" | 53 #include "chrome/browser/search/contextual_search_policy_handler_android.h" |
| 54 #endif | 54 #endif |
| 55 | 55 |
| 56 #if defined(OS_CHROMEOS) | 56 #if defined(OS_CHROMEOS) |
| 57 #include "ash/common/accessibility_types.h" | 57 #include "ash/common/accessibility_types.h" |
| 58 #include "chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.h" | |
| 58 #include "chrome/browser/chromeos/platform_keys/key_permissions_policy_handler.h " | 59 #include "chrome/browser/chromeos/platform_keys/key_permissions_policy_handler.h " |
| 59 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h " | 60 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h " |
| 60 #include "chromeos/chromeos_pref_names.h" | 61 #include "chromeos/chromeos_pref_names.h" |
| 61 #include "chromeos/dbus/power_policy_controller.h" | 62 #include "chromeos/dbus/power_policy_controller.h" |
| 62 #include "components/drive/drive_pref_names.h" | 63 #include "components/drive/drive_pref_names.h" |
| 63 #include "components/user_manager/user.h" | 64 #include "components/user_manager/user.h" |
| 64 #include "components/user_manager/user_manager.h" | 65 #include "components/user_manager/user_manager.h" |
| 65 #endif | 66 #endif |
| 66 | 67 |
| 67 #if !defined(OS_ANDROID) | 68 #if !defined(OS_ANDROID) |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 853 handlers->AddHandler( | 854 handlers->AddHandler( |
| 854 base::WrapUnique(new ExternalDataPolicyHandler(key::kUserAvatarImage))); | 855 base::WrapUnique(new ExternalDataPolicyHandler(key::kUserAvatarImage))); |
| 855 handlers->AddHandler( | 856 handlers->AddHandler( |
| 856 base::WrapUnique(new ExternalDataPolicyHandler(key::kWallpaperImage))); | 857 base::WrapUnique(new ExternalDataPolicyHandler(key::kWallpaperImage))); |
| 857 handlers->AddHandler(base::WrapUnique(new SimpleSchemaValidatingPolicyHandler( | 858 handlers->AddHandler(base::WrapUnique(new SimpleSchemaValidatingPolicyHandler( |
| 858 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT, | 859 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT, |
| 859 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 860 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
| 860 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 861 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
| 861 handlers->AddHandler(base::WrapUnique( | 862 handlers->AddHandler(base::WrapUnique( |
| 862 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); | 863 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); |
| 864 handlers->AddHandler(base::WrapUnique( | |
|
Thiemo Nagel
2016/07/12 15:02:40
Do you really need a handler here? Why not follow
Sergey Poromov
2016/07/12 16:18:11
Done.
| |
| 865 new arc::ArcBackupRestorePolicyHandler())); | |
| 863 #endif // defined(OS_CHROMEOS) | 866 #endif // defined(OS_CHROMEOS) |
| 864 | 867 |
| 865 return handlers; | 868 return handlers; |
| 866 } | 869 } |
| 867 | 870 |
| 868 } // namespace policy | 871 } // namespace policy |
| OLD | NEW |