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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 set_initial_sync_ended_on_init_(true), | 223 set_initial_sync_ended_on_init_(true), |
224 fail_initial_download_(false), | 224 fail_initial_download_(false), |
225 storage_option_(syncer::STORAGE_IN_MEMORY) { | 225 storage_option_(syncer::STORAGE_IN_MEMORY) { |
226 SetSyncSetupCompleted(); | 226 SetSyncSetupCompleted(); |
227 } | 227 } |
228 | 228 |
229 TestProfileSyncService::~TestProfileSyncService() { | 229 TestProfileSyncService::~TestProfileSyncService() { |
230 } | 230 } |
231 | 231 |
232 // static | 232 // static |
233 ProfileKeyedService* TestProfileSyncService::BuildAutoStartAsyncInit( | 233 BrowserContextKeyedService* TestProfileSyncService::BuildAutoStartAsyncInit( |
234 content::BrowserContext* context) { | 234 content::BrowserContext* context) { |
235 Profile* profile = static_cast<Profile*>(context); | 235 Profile* profile = static_cast<Profile*>(context); |
236 SigninManagerBase* signin = | 236 SigninManagerBase* signin = |
237 SigninManagerFactory::GetForProfile(profile); | 237 SigninManagerFactory::GetForProfile(profile); |
238 ProfileSyncComponentsFactoryMock* factory = | 238 ProfileSyncComponentsFactoryMock* factory = |
239 new ProfileSyncComponentsFactoryMock(); | 239 new ProfileSyncComponentsFactoryMock(); |
240 return new TestProfileSyncService( | 240 return new TestProfileSyncService( |
241 factory, profile, signin, ProfileSyncService::AUTO_START, false); | 241 factory, profile, signin, ProfileSyncService::AUTO_START, false); |
242 } | 242 } |
243 | 243 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 profile(), | 292 profile(), |
293 sync_prefs_.AsWeakPtr(), | 293 sync_prefs_.AsWeakPtr(), |
294 invalidator_storage_.AsWeakPtr(), | 294 invalidator_storage_.AsWeakPtr(), |
295 id_factory_, | 295 id_factory_, |
296 callback_, | 296 callback_, |
297 set_initial_sync_ended_on_init_, | 297 set_initial_sync_ended_on_init_, |
298 synchronous_backend_initialization_, | 298 synchronous_backend_initialization_, |
299 fail_initial_download_, | 299 fail_initial_download_, |
300 storage_option_)); | 300 storage_option_)); |
301 } | 301 } |
OLD | NEW |