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/profile_sync_test_util.h" | 5 #include "components/browser_sync/profile_sync_test_util.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "components/bookmarks/browser/bookmark_model.h" | 10 #include "components/bookmarks/browser/bookmark_model.h" |
11 #include "components/history/core/browser/history_model_worker.h" | 11 #include "components/history/core/browser/history_model_worker.h" |
12 #include "components/pref_registry/pref_registry_syncable.h" | 12 #include "components/pref_registry/pref_registry_syncable.h" |
13 #include "components/signin/core/browser/signin_manager_base.h" | 13 #include "components/signin/core/browser/signin_manager_base.h" |
| 14 #include "components/sync/base/sync_prefs.h" |
14 #include "components/sync/driver/glue/browser_thread_model_worker.h" | 15 #include "components/sync/driver/glue/browser_thread_model_worker.h" |
15 #include "components/sync/driver/glue/ui_model_worker.h" | 16 #include "components/sync/driver/glue/ui_model_worker.h" |
16 #include "components/sync/driver/signin_manager_wrapper.h" | 17 #include "components/sync/driver/signin_manager_wrapper.h" |
17 #include "components/sync/driver/sync_prefs.h" | |
18 #include "components/sync/engine/passive_model_worker.h" | 18 #include "components/sync/engine/passive_model_worker.h" |
19 #include "net/url_request/url_request_test_util.h" | 19 #include "net/url_request/url_request_test_util.h" |
20 | 20 |
21 namespace browser_sync { | 21 namespace browser_sync { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 class BundleSyncClient : public syncer::FakeSyncClient { | 25 class BundleSyncClient : public syncer::FakeSyncClient { |
26 public: | 26 public: |
27 BundleSyncClient(syncer::SyncApiComponentFactory* factory, | 27 BundleSyncClient(syncer::SyncApiComponentFactory* factory, |
(...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 |