OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/browser_sync/browser/profile_sync_test_util.h" | 5 #include "components/browser_sync/browser/profile_sync_test_util.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "components/bookmarks/browser/bookmark_model.h" | 8 #include "components/bookmarks/browser/bookmark_model.h" |
9 #include "components/history/core/browser/history_model_worker.h" | 9 #include "components/history/core/browser/history_model_worker.h" |
10 #include "components/pref_registry/pref_registry_syncable.h" | 10 #include "components/pref_registry/pref_registry_syncable.h" |
11 #include "components/signin/core/browser/signin_manager_base.h" | 11 #include "components/signin/core/browser/signin_manager_base.h" |
| 12 #include "components/sync/engine/passive_model_worker.h" |
12 #include "components/sync_driver/glue/browser_thread_model_worker.h" | 13 #include "components/sync_driver/glue/browser_thread_model_worker.h" |
13 #include "components/sync_driver/glue/ui_model_worker.h" | 14 #include "components/sync_driver/glue/ui_model_worker.h" |
14 #include "components/sync_driver/signin_manager_wrapper.h" | 15 #include "components/sync_driver/signin_manager_wrapper.h" |
15 #include "components/sync_driver/sync_prefs.h" | 16 #include "components/sync_driver/sync_prefs.h" |
16 #include "net/url_request/url_request_test_util.h" | 17 #include "net/url_request/url_request_test_util.h" |
17 #include "sync/internal_api/public/engine/passive_model_worker.h" | |
18 | 18 |
19 namespace browser_sync { | 19 namespace browser_sync { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 class BundleSyncClient : public sync_driver::FakeSyncClient { | 23 class BundleSyncClient : public sync_driver::FakeSyncClient { |
24 public: | 24 public: |
25 BundleSyncClient( | 25 BundleSyncClient( |
26 sync_driver::SyncApiComponentFactory* factory, | 26 sync_driver::SyncApiComponentFactory* factory, |
27 PrefService* pref_service, | 27 PrefService* pref_service, |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 init_params.debug_identifier = "dummyDebugName"; | 266 init_params.debug_identifier = "dummyDebugName"; |
267 init_params.channel = version_info::Channel::UNKNOWN; | 267 init_params.channel = version_info::Channel::UNKNOWN; |
268 init_params.db_thread = db_thread_; | 268 init_params.db_thread = db_thread_; |
269 init_params.file_thread = base::ThreadTaskRunnerHandle::Get(); | 269 init_params.file_thread = base::ThreadTaskRunnerHandle::Get(); |
270 init_params.blocking_pool = worker_pool_owner_.pool().get(); | 270 init_params.blocking_pool = worker_pool_owner_.pool().get(); |
271 | 271 |
272 return init_params; | 272 return init_params; |
273 } | 273 } |
274 | 274 |
275 } // namespace browser_sync | 275 } // namespace browser_sync |
OLD | NEW |