| 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" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "chrome/browser/profiles/profile_manager.h" | 42 #include "chrome/browser/profiles/profile_manager.h" |
| 43 #include "chrome/browser/profiles/storage_partition_descriptor.h" | 43 #include "chrome/browser/profiles/storage_partition_descriptor.h" |
| 44 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" | 44 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" |
| 45 #include "chrome/browser/sync/glue/sync_start_util.h" | 45 #include "chrome/browser/sync/glue/sync_start_util.h" |
| 46 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | 46 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
| 47 #include "chrome/browser/web_data_service_factory.h" | 47 #include "chrome/browser/web_data_service_factory.h" |
| 48 #include "chrome/common/chrome_constants.h" | 48 #include "chrome/common/chrome_constants.h" |
| 49 #include "chrome/common/chrome_switches.h" | 49 #include "chrome/common/chrome_switches.h" |
| 50 #include "chrome/common/pref_names.h" | 50 #include "chrome/common/pref_names.h" |
| 51 #include "chrome/common/url_constants.h" | 51 #include "chrome/common/url_constants.h" |
| 52 #include "chrome/test/base/history_index_restore_observer.h" | |
| 53 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 52 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 54 #include "components/bookmarks/browser/bookmark_model.h" | 53 #include "components/bookmarks/browser/bookmark_model.h" |
| 55 #include "components/bookmarks/common/bookmark_constants.h" | 54 #include "components/bookmarks/common/bookmark_constants.h" |
| 56 #include "components/content_settings/core/browser/host_content_settings_map.h" | 55 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 57 #include "components/favicon/core/fallback_icon_service.h" | 56 #include "components/favicon/core/fallback_icon_service.h" |
| 58 #include "components/favicon/core/favicon_service.h" | 57 #include "components/favicon/core/favicon_service.h" |
| 59 #include "components/history/content/browser/content_visit_delegate.h" | 58 #include "components/history/content/browser/content_visit_delegate.h" |
| 60 #include "components/history/content/browser/history_database_helper.h" | 59 #include "components/history/content/browser/history_database_helper.h" |
| 61 #include "components/history/core/browser/history_backend.h" | 60 #include "components/history/core/browser/history_backend.h" |
| 62 #include "components/history/core/browser/history_constants.h" | 61 #include "components/history/core/browser/history_constants.h" |
| 63 #include "components/history/core/browser/history_database_params.h" | 62 #include "components/history/core/browser/history_database_params.h" |
| 64 #include "components/history/core/browser/history_db_task.h" | 63 #include "components/history/core/browser/history_db_task.h" |
| 65 #include "components/history/core/browser/history_service.h" | 64 #include "components/history/core/browser/history_service.h" |
| 66 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 65 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 67 #include "components/keyed_service/core/refcounted_keyed_service.h" | 66 #include "components/keyed_service/core/refcounted_keyed_service.h" |
| 68 #include "components/omnibox/browser/autocomplete_classifier.h" | 67 #include "components/omnibox/browser/autocomplete_classifier.h" |
| 68 #include "components/omnibox/browser/history_index_restore_observer.h" |
| 69 #include "components/omnibox/browser/in_memory_url_index.h" | 69 #include "components/omnibox/browser/in_memory_url_index.h" |
| 70 #include "components/policy/core/common/policy_service.h" | 70 #include "components/policy/core/common/policy_service.h" |
| 71 #include "components/proxy_config/pref_proxy_config_tracker.h" | 71 #include "components/proxy_config/pref_proxy_config_tracker.h" |
| 72 #include "components/syncable_prefs/pref_service_syncable.h" | 72 #include "components/syncable_prefs/pref_service_syncable.h" |
| 73 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 73 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
| 74 #include "components/ui/zoom/zoom_event_manager.h" | 74 #include "components/ui/zoom/zoom_event_manager.h" |
| 75 #include "components/user_prefs/user_prefs.h" | 75 #include "components/user_prefs/user_prefs.h" |
| 76 #include "components/webdata_services/web_data_service_wrapper.h" | 76 #include "components/webdata_services/web_data_service_wrapper.h" |
| 77 #include "content/public/browser/browser_thread.h" | 77 #include "content/public/browser/browser_thread.h" |
| 78 #include "content/public/browser/cookie_store_factory.h" | 78 #include "content/public/browser/cookie_store_factory.h" |
| (...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 | 1046 |
| 1047 // Note: Owned by |original_profile|. | 1047 // Note: Owned by |original_profile|. |
| 1048 return new TestingProfile(path_, delegate_, | 1048 return new TestingProfile(path_, delegate_, |
| 1049 #if defined(ENABLE_EXTENSIONS) | 1049 #if defined(ENABLE_EXTENSIONS) |
| 1050 extension_policy_, | 1050 extension_policy_, |
| 1051 #endif | 1051 #endif |
| 1052 std::move(pref_service_), original_profile, | 1052 std::move(pref_service_), original_profile, |
| 1053 guest_session_, supervised_user_id_, | 1053 guest_session_, supervised_user_id_, |
| 1054 std::move(policy_service_), testing_factories_); | 1054 std::move(policy_service_), testing_factories_); |
| 1055 } | 1055 } |
| OLD | NEW |