| 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/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/prefs/testing_pref_store.h" | |
| 16 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 17 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
| 18 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 19 #include "base/thread_task_runner_handle.h" | 18 #include "base/thread_task_runner_handle.h" |
| 20 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 21 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" | 20 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" |
| 22 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 21 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 23 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" | 22 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" |
| 24 #include "chrome/browser/bookmarks/managed_bookmark_service_factory.h" | 23 #include "chrome/browser/bookmarks/managed_bookmark_service_factory.h" |
| 25 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 #include "components/history/core/browser/history_constants.h" | 59 #include "components/history/core/browser/history_constants.h" |
| 61 #include "components/history/core/browser/history_database_params.h" | 60 #include "components/history/core/browser/history_database_params.h" |
| 62 #include "components/history/core/browser/history_db_task.h" | 61 #include "components/history/core/browser/history_db_task.h" |
| 63 #include "components/history/core/browser/history_service.h" | 62 #include "components/history/core/browser/history_service.h" |
| 64 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 63 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 65 #include "components/keyed_service/core/refcounted_keyed_service.h" | 64 #include "components/keyed_service/core/refcounted_keyed_service.h" |
| 66 #include "components/omnibox/browser/autocomplete_classifier.h" | 65 #include "components/omnibox/browser/autocomplete_classifier.h" |
| 67 #include "components/omnibox/browser/history_index_restore_observer.h" | 66 #include "components/omnibox/browser/history_index_restore_observer.h" |
| 68 #include "components/omnibox/browser/in_memory_url_index.h" | 67 #include "components/omnibox/browser/in_memory_url_index.h" |
| 69 #include "components/policy/core/common/policy_service.h" | 68 #include "components/policy/core/common/policy_service.h" |
| 69 #include "components/prefs/testing_pref_store.h" |
| 70 #include "components/proxy_config/pref_proxy_config_tracker.h" | 70 #include "components/proxy_config/pref_proxy_config_tracker.h" |
| 71 #include "components/syncable_prefs/pref_service_syncable.h" | 71 #include "components/syncable_prefs/pref_service_syncable.h" |
| 72 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 72 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
| 73 #include "components/ui/zoom/zoom_event_manager.h" | 73 #include "components/ui/zoom/zoom_event_manager.h" |
| 74 #include "components/user_prefs/user_prefs.h" | 74 #include "components/user_prefs/user_prefs.h" |
| 75 #include "components/webdata_services/web_data_service_wrapper.h" | 75 #include "components/webdata_services/web_data_service_wrapper.h" |
| 76 #include "content/public/browser/browser_thread.h" | 76 #include "content/public/browser/browser_thread.h" |
| 77 #include "content/public/browser/cookie_store_factory.h" | 77 #include "content/public/browser/cookie_store_factory.h" |
| 78 #include "content/public/browser/notification_service.h" | 78 #include "content/public/browser/notification_service.h" |
| 79 #include "content/public/browser/render_process_host.h" | 79 #include "content/public/browser/render_process_host.h" |
| (...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 | 1038 |
| 1039 // Note: Owned by |original_profile|. | 1039 // Note: Owned by |original_profile|. |
| 1040 return new TestingProfile(path_, delegate_, | 1040 return new TestingProfile(path_, delegate_, |
| 1041 #if defined(ENABLE_EXTENSIONS) | 1041 #if defined(ENABLE_EXTENSIONS) |
| 1042 extension_policy_, | 1042 extension_policy_, |
| 1043 #endif | 1043 #endif |
| 1044 std::move(pref_service_), original_profile, | 1044 std::move(pref_service_), original_profile, |
| 1045 guest_session_, supervised_user_id_, | 1045 guest_session_, supervised_user_id_, |
| 1046 std::move(policy_service_), testing_factories_); | 1046 std::move(policy_service_), testing_factories_); |
| 1047 } | 1047 } |
| OLD | NEW |