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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "build/build_config.h" | 6 #include "build/build_config.h" |
7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
8 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h" | 8 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h" |
9 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 9 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
10 #include "chrome/browser/history/history_service.h" | 10 #include "chrome/browser/history/history_service.h" |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 #endif | 398 #endif |
399 } | 399 } |
400 | 400 |
401 DataTypeManager* ProfileSyncComponentsFactoryImpl::CreateDataTypeManager( | 401 DataTypeManager* ProfileSyncComponentsFactoryImpl::CreateDataTypeManager( |
402 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& | 402 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& |
403 debug_info_listener, | 403 debug_info_listener, |
404 const DataTypeController::TypeMap* controllers, | 404 const DataTypeController::TypeMap* controllers, |
405 const sync_driver::DataTypeEncryptionHandler* encryption_handler, | 405 const sync_driver::DataTypeEncryptionHandler* encryption_handler, |
406 SyncBackendHost* backend, | 406 SyncBackendHost* backend, |
407 DataTypeManagerObserver* observer, | 407 DataTypeManagerObserver* observer, |
408 sync_driver::FailedDataTypesHandler* failed_data_types_handler) { | 408 sync_driver::DataTypeStatusTable* data_type_status_table) { |
409 return new DataTypeManagerImpl(base::Bind(ChromeReportUnrecoverableError), | 409 return new DataTypeManagerImpl(base::Bind(ChromeReportUnrecoverableError), |
410 debug_info_listener, | 410 debug_info_listener, |
411 controllers, | 411 controllers, |
412 encryption_handler, | 412 encryption_handler, |
413 backend, | 413 backend, |
414 observer, | 414 observer, |
415 failed_data_types_handler); | 415 data_type_status_table); |
416 } | 416 } |
417 | 417 |
418 browser_sync::SyncBackendHost* | 418 browser_sync::SyncBackendHost* |
419 ProfileSyncComponentsFactoryImpl::CreateSyncBackendHost( | 419 ProfileSyncComponentsFactoryImpl::CreateSyncBackendHost( |
420 const std::string& name, | 420 const std::string& name, |
421 Profile* profile, | 421 Profile* profile, |
422 invalidation::InvalidationService* invalidator, | 422 invalidation::InvalidationService* invalidator, |
423 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, | 423 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, |
424 const base::FilePath& sync_folder) { | 424 const base::FilePath& sync_folder) { |
425 return new browser_sync::SyncBackendHostImpl(name, profile, invalidator, | 425 return new browser_sync::SyncBackendHostImpl(name, profile, invalidator, |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 new TypedUrlModelAssociator(profile_sync_service, | 673 new TypedUrlModelAssociator(profile_sync_service, |
674 history_backend, | 674 history_backend, |
675 error_handler); | 675 error_handler); |
676 TypedUrlChangeProcessor* change_processor = | 676 TypedUrlChangeProcessor* change_processor = |
677 new TypedUrlChangeProcessor(profile_, | 677 new TypedUrlChangeProcessor(profile_, |
678 model_associator, | 678 model_associator, |
679 history_backend, | 679 history_backend, |
680 error_handler); | 680 error_handler); |
681 return SyncComponents(model_associator, change_processor); | 681 return SyncComponents(model_associator, change_processor); |
682 } | 682 } |
OLD | NEW |