| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/test/base/testing_profile.h" | 5 #include "chrome/test/base/testing_profile.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
| 18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
| 19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/threading/thread_restrictions.h" | 20 #include "base/threading/thread_restrictions.h" |
| 21 #include "base/threading/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
| 22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 23 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" | 23 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" |
| 24 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 24 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 25 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" | 25 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" |
| 26 #include "chrome/browser/bookmarks/managed_bookmark_service_factory.h" | 26 #include "chrome/browser/bookmarks/managed_bookmark_service_factory.h" |
| 27 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
| 28 #include "chrome/browser/chrome_notification_types.h" | 28 #include "chrome/browser/chrome_notification_types.h" |
| 29 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 29 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
| 30 #include "chrome/browser/favicon/chrome_fallback_icon_client_factory.h" | |
| 31 #include "chrome/browser/favicon/fallback_icon_service_factory.h" | |
| 32 #include "chrome/browser/favicon/favicon_service_factory.h" | 30 #include "chrome/browser/favicon/favicon_service_factory.h" |
| 33 #include "chrome/browser/history/chrome_history_client.h" | 31 #include "chrome/browser/history/chrome_history_client.h" |
| 34 #include "chrome/browser/history/history_service_factory.h" | 32 #include "chrome/browser/history/history_service_factory.h" |
| 35 #include "chrome/browser/history/web_history_service_factory.h" | 33 #include "chrome/browser/history/web_history_service_factory.h" |
| 36 #include "chrome/browser/net/proxy_service_factory.h" | 34 #include "chrome/browser/net/proxy_service_factory.h" |
| 37 #include "chrome/browser/policy/profile_policy_connector.h" | 35 #include "chrome/browser/policy/profile_policy_connector.h" |
| 38 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 36 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
| 39 #include "chrome/browser/policy/schema_registry_service.h" | 37 #include "chrome/browser/policy/schema_registry_service.h" |
| 40 #include "chrome/browser/policy/schema_registry_service_factory.h" | 38 #include "chrome/browser/policy/schema_registry_service_factory.h" |
| 41 #include "chrome/browser/prefs/browser_prefs.h" | 39 #include "chrome/browser/prefs/browser_prefs.h" |
| 42 #include "chrome/browser/prefs/pref_service_syncable_util.h" | 40 #include "chrome/browser/prefs/pref_service_syncable_util.h" |
| 43 #include "chrome/browser/prerender/prerender_manager.h" | 41 #include "chrome/browser/prerender/prerender_manager.h" |
| 44 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" | 42 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" |
| 45 #include "chrome/browser/profiles/profile_manager.h" | 43 #include "chrome/browser/profiles/profile_manager.h" |
| 46 #include "chrome/browser/profiles/storage_partition_descriptor.h" | 44 #include "chrome/browser/profiles/storage_partition_descriptor.h" |
| 47 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" | 45 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" |
| 48 #include "chrome/browser/search_engines/template_url_service_factory.h" | 46 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 49 #include "chrome/browser/sync/glue/sync_start_util.h" | 47 #include "chrome/browser/sync/glue/sync_start_util.h" |
| 50 #include "chrome/browser/web_data_service_factory.h" | 48 #include "chrome/browser/web_data_service_factory.h" |
| 51 #include "chrome/common/chrome_constants.h" | 49 #include "chrome/common/chrome_constants.h" |
| 52 #include "chrome/common/chrome_switches.h" | 50 #include "chrome/common/chrome_switches.h" |
| 53 #include "chrome/common/features.h" | 51 #include "chrome/common/features.h" |
| 54 #include "chrome/common/pref_names.h" | 52 #include "chrome/common/pref_names.h" |
| 55 #include "chrome/common/url_constants.h" | 53 #include "chrome/common/url_constants.h" |
| 56 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 54 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 57 #include "components/bookmarks/browser/bookmark_model.h" | 55 #include "components/bookmarks/browser/bookmark_model.h" |
| 58 #include "components/bookmarks/common/bookmark_constants.h" | 56 #include "components/bookmarks/common/bookmark_constants.h" |
| 59 #include "components/content_settings/core/browser/host_content_settings_map.h" | 57 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 60 #include "components/favicon/core/fallback_icon_service.h" | |
| 61 #include "components/favicon/core/favicon_service.h" | 58 #include "components/favicon/core/favicon_service.h" |
| 62 #include "components/history/content/browser/content_visit_delegate.h" | 59 #include "components/history/content/browser/content_visit_delegate.h" |
| 63 #include "components/history/content/browser/history_database_helper.h" | 60 #include "components/history/content/browser/history_database_helper.h" |
| 64 #include "components/history/core/browser/history_backend.h" | 61 #include "components/history/core/browser/history_backend.h" |
| 65 #include "components/history/core/browser/history_constants.h" | 62 #include "components/history/core/browser/history_constants.h" |
| 66 #include "components/history/core/browser/history_database_params.h" | 63 #include "components/history/core/browser/history_database_params.h" |
| 67 #include "components/history/core/browser/history_db_task.h" | 64 #include "components/history/core/browser/history_db_task.h" |
| 68 #include "components/history/core/browser/history_service.h" | 65 #include "components/history/core/browser/history_service.h" |
| 69 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 66 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 70 #include "components/keyed_service/core/refcounted_keyed_service.h" | 67 #include "components/keyed_service/core/refcounted_keyed_service.h" |
| (...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 // Note: Owned by |original_profile|. | 1102 // Note: Owned by |original_profile|. |
| 1106 return new TestingProfile(path_, delegate_, | 1103 return new TestingProfile(path_, delegate_, |
| 1107 #if BUILDFLAG(ENABLE_EXTENSIONS) | 1104 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 1108 extension_policy_, | 1105 extension_policy_, |
| 1109 #endif | 1106 #endif |
| 1110 std::move(pref_service_), original_profile, | 1107 std::move(pref_service_), original_profile, |
| 1111 guest_session_, supervised_user_id_, | 1108 guest_session_, supervised_user_id_, |
| 1112 std::move(policy_service_), testing_factories_, | 1109 std::move(policy_service_), testing_factories_, |
| 1113 profile_name_); | 1110 profile_name_); |
| 1114 } | 1111 } |
| OLD | NEW |