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/browser/sync/test_profile_sync_service.h" | 5 #include "chrome/browser/sync/test_profile_sync_service.h" |
6 | 6 |
7 #include "chrome/browser/signin/signin_manager.h" | 7 #include "chrome/browser/signin/signin_manager.h" |
8 #include "chrome/browser/signin/signin_manager_factory.h" | 8 #include "chrome/browser/signin/signin_manager_factory.h" |
9 #include "chrome/browser/sync/glue/data_type_controller.h" | 9 #include "chrome/browser/sync/glue/data_type_controller.h" |
10 #include "chrome/browser/sync/glue/sync_backend_host.h" | 10 #include "chrome/browser/sync/glue/sync_backend_host.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 using syncer::DEVICE_INFO; | 29 using syncer::DEVICE_INFO; |
30 using syncer::EXPERIMENTS; | 30 using syncer::EXPERIMENTS; |
31 using syncer::NIGORI; | 31 using syncer::NIGORI; |
32 using syncer::PRIORITY_PREFERENCES; | 32 using syncer::PRIORITY_PREFERENCES; |
33 | 33 |
34 namespace browser_sync { | 34 namespace browser_sync { |
35 | 35 |
36 SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest( | 36 SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest( |
37 Profile* profile, | 37 Profile* profile, |
38 const base::WeakPtr<SyncPrefs>& sync_prefs, | 38 const base::WeakPtr<SyncPrefs>& sync_prefs, |
39 const base::WeakPtr<InvalidatorStorage>& invalidator_storage, | 39 const base::WeakPtr<invalidation::InvalidatorStorage>& invalidator_storage, |
40 syncer::TestIdFactory& id_factory, | 40 syncer::TestIdFactory& id_factory, |
41 base::Closure& callback, | 41 base::Closure& callback, |
42 bool set_initial_sync_ended_on_init, | 42 bool set_initial_sync_ended_on_init, |
43 bool synchronous_init, | 43 bool synchronous_init, |
44 bool fail_initial_download, | 44 bool fail_initial_download, |
45 syncer::StorageOption storage_option) | 45 syncer::StorageOption storage_option) |
46 : browser_sync::SyncBackendHost( | 46 : browser_sync::SyncBackendHost( |
47 profile->GetDebugName(), profile, sync_prefs, invalidator_storage), | 47 profile->GetDebugName(), profile, sync_prefs, invalidator_storage), |
48 weak_ptr_factory_(this), | 48 weak_ptr_factory_(this), |
49 id_factory_(id_factory), | 49 id_factory_(id_factory), |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 profile(), | 289 profile(), |
290 sync_prefs_.AsWeakPtr(), | 290 sync_prefs_.AsWeakPtr(), |
291 invalidator_storage_.AsWeakPtr(), | 291 invalidator_storage_.AsWeakPtr(), |
292 id_factory_, | 292 id_factory_, |
293 callback_, | 293 callback_, |
294 set_initial_sync_ended_on_init_, | 294 set_initial_sync_ended_on_init_, |
295 synchronous_backend_initialization_, | 295 synchronous_backend_initialization_, |
296 fail_initial_download_, | 296 fail_initial_download_, |
297 storage_option_)); | 297 storage_option_)); |
298 } | 298 } |
OLD | NEW |