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" |
11 #include "chrome/browser/history/history_service_factory.h" | 11 #include "chrome/browser/history/history_service_factory.h" |
12 #include "chrome/browser/password_manager/password_store_factory.h" | 12 #include "chrome/browser/password_manager/password_store_factory.h" |
13 #include "chrome/browser/pref_service_flags_storage.h" | 13 #include "chrome/browser/pref_service_flags_storage.h" |
14 #include "chrome/browser/prefs/pref_model_associator.h" | 14 #include "chrome/browser/prefs/pref_model_associator.h" |
15 #include "chrome/browser/prefs/pref_service_syncable.h" | 15 #include "chrome/browser/prefs/pref_service_syncable.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/search_engines/template_url_service.h" | 17 #include "chrome/browser/search_engines/template_url_service.h" |
18 #include "chrome/browser/search_engines/template_url_service_factory.h" | 18 #include "chrome/browser/search_engines/template_url_service_factory.h" |
19 #include "chrome/browser/signin/signin_manager_factory.h" | 19 #include "chrome/browser/signin/signin_manager_factory.h" |
20 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" | 20 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" |
21 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h" | 21 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h" |
22 #include "chrome/browser/sync/glue/bookmark_change_processor.h" | 22 #include "chrome/browser/sync/glue/bookmark_change_processor.h" |
23 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h" | 23 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h" |
24 #include "chrome/browser/sync/glue/bookmark_model_associator.h" | 24 #include "chrome/browser/sync/glue/bookmark_model_associator.h" |
25 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" | 25 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" |
26 #include "chrome/browser/sync/glue/data_type_manager_impl.h" | |
27 #include "chrome/browser/sync/glue/extension_data_type_controller.h" | 26 #include "chrome/browser/sync/glue/extension_data_type_controller.h" |
28 #include "chrome/browser/sync/glue/extension_setting_data_type_controller.h" | 27 #include "chrome/browser/sync/glue/extension_setting_data_type_controller.h" |
29 #include "chrome/browser/sync/glue/password_data_type_controller.h" | 28 #include "chrome/browser/sync/glue/password_data_type_controller.h" |
30 #include "chrome/browser/sync/glue/search_engine_data_type_controller.h" | 29 #include "chrome/browser/sync/glue/search_engine_data_type_controller.h" |
31 #include "chrome/browser/sync/glue/shared_change_processor.h" | 30 #include "chrome/browser/sync/glue/shared_change_processor.h" |
32 #include "chrome/browser/sync/glue/sync_backend_host.h" | 31 #include "chrome/browser/sync/glue/sync_backend_host.h" |
33 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" | 32 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" |
34 #include "chrome/browser/sync/glue/theme_data_type_controller.h" | 33 #include "chrome/browser/sync/glue/theme_data_type_controller.h" |
35 #include "chrome/browser/sync/glue/typed_url_change_processor.h" | 34 #include "chrome/browser/sync/glue/typed_url_change_processor.h" |
36 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h" | 35 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h" |
37 #include "chrome/browser/sync/glue/typed_url_model_associator.h" | 36 #include "chrome/browser/sync/glue/typed_url_model_associator.h" |
38 #include "chrome/browser/sync/glue/ui_data_type_controller.h" | 37 #include "chrome/browser/sync/glue/ui_data_type_controller.h" |
39 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" | 38 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" |
40 #include "chrome/browser/sync/profile_sync_service.h" | 39 #include "chrome/browser/sync/profile_sync_service.h" |
41 #include "chrome/browser/sync/profile_sync_service_factory.h" | 40 #include "chrome/browser/sync/profile_sync_service_factory.h" |
42 #include "chrome/browser/sync/sessions/session_data_type_controller.h" | 41 #include "chrome/browser/sync/sessions/session_data_type_controller.h" |
43 #include "chrome/browser/themes/theme_service.h" | 42 #include "chrome/browser/themes/theme_service.h" |
44 #include "chrome/browser/themes/theme_service_factory.h" | 43 #include "chrome/browser/themes/theme_service_factory.h" |
45 #include "chrome/browser/themes/theme_syncable_service.h" | 44 #include "chrome/browser/themes/theme_syncable_service.h" |
46 #include "chrome/browser/webdata/autocomplete_syncable_service.h" | 45 #include "chrome/browser/webdata/autocomplete_syncable_service.h" |
47 #include "chrome/browser/webdata/web_data_service_factory.h" | 46 #include "chrome/browser/webdata/web_data_service_factory.h" |
48 #include "chrome/common/chrome_switches.h" | 47 #include "chrome/common/chrome_switches.h" |
49 #include "chrome/common/chrome_version_info.h" | 48 #include "chrome/common/chrome_version_info.h" |
50 #include "chrome/common/pref_names.h" | 49 #include "chrome/common/pref_names.h" |
51 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" | 50 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" |
52 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 51 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
53 #include "components/dom_distiller/core/dom_distiller_service.h" | 52 #include "components/dom_distiller/core/dom_distiller_service.h" |
54 #include "components/password_manager/core/browser/password_store.h" | 53 #include "components/password_manager/core/browser/password_store.h" |
55 #include "components/signin/core/browser/signin_manager.h" | 54 #include "components/signin/core/browser/signin_manager.h" |
| 55 #include "components/sync_driver/data_type_manager_impl.h" |
56 #include "components/sync_driver/data_type_manager_observer.h" | 56 #include "components/sync_driver/data_type_manager_observer.h" |
57 #include "components/sync_driver/generic_change_processor.h" | 57 #include "components/sync_driver/generic_change_processor.h" |
58 #include "components/sync_driver/proxy_data_type_controller.h" | 58 #include "components/sync_driver/proxy_data_type_controller.h" |
59 #include "content/public/browser/browser_thread.h" | 59 #include "content/public/browser/browser_thread.h" |
60 #include "extensions/browser/extension_system.h" | 60 #include "extensions/browser/extension_system.h" |
61 #include "sync/api/attachments/attachment_service.h" | 61 #include "sync/api/attachments/attachment_service.h" |
62 #include "sync/api/attachments/fake_attachment_service.h" | 62 #include "sync/api/attachments/fake_attachment_service.h" |
63 #include "sync/api/attachments/fake_attachment_store.h" | 63 #include "sync/api/attachments/fake_attachment_store.h" |
64 #include "sync/api/syncable_service.h" | 64 #include "sync/api/syncable_service.h" |
65 | 65 |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 } | 414 } |
415 | 415 |
416 DataTypeManager* ProfileSyncComponentsFactoryImpl::CreateDataTypeManager( | 416 DataTypeManager* ProfileSyncComponentsFactoryImpl::CreateDataTypeManager( |
417 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& | 417 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& |
418 debug_info_listener, | 418 debug_info_listener, |
419 const DataTypeController::TypeMap* controllers, | 419 const DataTypeController::TypeMap* controllers, |
420 const browser_sync::DataTypeEncryptionHandler* encryption_handler, | 420 const browser_sync::DataTypeEncryptionHandler* encryption_handler, |
421 SyncBackendHost* backend, | 421 SyncBackendHost* backend, |
422 DataTypeManagerObserver* observer, | 422 DataTypeManagerObserver* observer, |
423 browser_sync::FailedDataTypesHandler* failed_data_types_handler) { | 423 browser_sync::FailedDataTypesHandler* failed_data_types_handler) { |
424 return new DataTypeManagerImpl(debug_info_listener, | 424 return new DataTypeManagerImpl(base::Bind(ChromeReportUnrecoverableError), |
| 425 debug_info_listener, |
425 controllers, | 426 controllers, |
426 encryption_handler, | 427 encryption_handler, |
427 backend, | 428 backend, |
428 observer, | 429 observer, |
429 failed_data_types_handler); | 430 failed_data_types_handler); |
430 } | 431 } |
431 | 432 |
432 browser_sync::SyncBackendHost* | 433 browser_sync::SyncBackendHost* |
433 ProfileSyncComponentsFactoryImpl::CreateSyncBackendHost( | 434 ProfileSyncComponentsFactoryImpl::CreateSyncBackendHost( |
434 const std::string& name, | 435 const std::string& name, |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 new TypedUrlModelAssociator(profile_sync_service, | 607 new TypedUrlModelAssociator(profile_sync_service, |
607 history_backend, | 608 history_backend, |
608 error_handler); | 609 error_handler); |
609 TypedUrlChangeProcessor* change_processor = | 610 TypedUrlChangeProcessor* change_processor = |
610 new TypedUrlChangeProcessor(profile_, | 611 new TypedUrlChangeProcessor(profile_, |
611 model_associator, | 612 model_associator, |
612 history_backend, | 613 history_backend, |
613 error_handler); | 614 error_handler); |
614 return SyncComponents(model_associator, change_processor); | 615 return SyncComponents(model_associator, change_processor); |
615 } | 616 } |
OLD | NEW |