| 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 11 matching lines...) Expand all Loading... |
| 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/history_delete_directives_data_type_controlle
r.h" | 26 #include "chrome/browser/sync/glue/history_delete_directives_data_type_controlle
r.h" |
| 27 #include "chrome/browser/sync/glue/local_device_info_provider_impl.h" | 27 #include "chrome/browser/sync/glue/local_device_info_provider_impl.h" |
| 28 #include "chrome/browser/sync/glue/password_data_type_controller.h" | 28 #include "chrome/browser/sync/glue/password_data_type_controller.h" |
| 29 #include "chrome/browser/sync/glue/search_engine_data_type_controller.h" | 29 #include "chrome/browser/sync/glue/search_engine_data_type_controller.h" |
| 30 #include "chrome/browser/sync/glue/sync_backend_host.h" | 30 #include "chrome/browser/sync/glue/sync_backend_host.h" |
| 31 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" | 31 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" |
| 32 #include "chrome/browser/sync/glue/theme_data_type_controller.h" | |
| 33 #include "chrome/browser/sync/glue/typed_url_change_processor.h" | 32 #include "chrome/browser/sync/glue/typed_url_change_processor.h" |
| 34 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h" | 33 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h" |
| 35 #include "chrome/browser/sync/glue/typed_url_model_associator.h" | 34 #include "chrome/browser/sync/glue/typed_url_model_associator.h" |
| 36 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" | 35 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" |
| 37 #include "chrome/browser/sync/profile_sync_service.h" | 36 #include "chrome/browser/sync/profile_sync_service.h" |
| 38 #include "chrome/browser/sync/profile_sync_service_factory.h" | 37 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 39 #include "chrome/browser/sync/sessions/session_data_type_controller.h" | 38 #include "chrome/browser/sync/sessions/session_data_type_controller.h" |
| 40 #include "chrome/browser/themes/theme_service.h" | |
| 41 #include "chrome/browser/themes/theme_service_factory.h" | |
| 42 #include "chrome/browser/themes/theme_syncable_service.h" | |
| 43 #include "chrome/browser/webdata/web_data_service_factory.h" | 39 #include "chrome/browser/webdata/web_data_service_factory.h" |
| 44 #include "chrome/common/chrome_switches.h" | 40 #include "chrome/common/chrome_switches.h" |
| 45 #include "chrome/common/chrome_version_info.h" | 41 #include "chrome/common/chrome_version_info.h" |
| 46 #include "chrome/common/pref_names.h" | 42 #include "chrome/common/pref_names.h" |
| 47 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" | 43 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" |
| 48 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" | 44 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" |
| 49 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv
ice.h" | 45 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv
ice.h" |
| 50 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 46 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 51 #include "components/autofill/core/common/autofill_pref_names.h" | 47 #include "components/autofill/core/common/autofill_pref_names.h" |
| 52 #include "components/autofill/core/common/autofill_switches.h" | 48 #include "components/autofill/core/common/autofill_switches.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor
y.h" | 91 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor
y.h" |
| 96 #include "chrome/browser/supervised_user/supervised_user_sync_data_type_controll
er.h" | 92 #include "chrome/browser/supervised_user/supervised_user_sync_data_type_controll
er.h" |
| 97 #include "chrome/browser/supervised_user/supervised_user_whitelist_service.h" | 93 #include "chrome/browser/supervised_user/supervised_user_whitelist_service.h" |
| 98 #endif | 94 #endif |
| 99 | 95 |
| 100 #if defined(ENABLE_SPELLCHECK) | 96 #if defined(ENABLE_SPELLCHECK) |
| 101 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 97 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
| 102 #include "chrome/browser/spellchecker/spellcheck_service.h" | 98 #include "chrome/browser/spellchecker/spellcheck_service.h" |
| 103 #endif | 99 #endif |
| 104 | 100 |
| 101 #if defined(ENABLE_THEMES) |
| 102 #include "chrome/browser/sync/glue/theme_data_type_controller.h" |
| 103 #include "chrome/browser/themes/theme_service.h" |
| 104 #include "chrome/browser/themes/theme_service_factory.h" |
| 105 #include "chrome/browser/themes/theme_syncable_service.h" |
| 106 #endif |
| 107 |
| 105 #if defined(OS_CHROMEOS) | 108 #if defined(OS_CHROMEOS) |
| 106 #include "components/wifi_sync/wifi_credential_syncable_service.h" | 109 #include "components/wifi_sync/wifi_credential_syncable_service.h" |
| 107 #include "components/wifi_sync/wifi_credential_syncable_service_factory.h" | 110 #include "components/wifi_sync/wifi_credential_syncable_service_factory.h" |
| 108 #endif | 111 #endif |
| 109 | 112 |
| 110 using bookmarks::BookmarkModel; | 113 using bookmarks::BookmarkModel; |
| 111 using browser_sync::AutofillDataTypeController; | 114 using browser_sync::AutofillDataTypeController; |
| 112 using browser_sync::AutofillProfileDataTypeController; | 115 using browser_sync::AutofillProfileDataTypeController; |
| 113 using browser_sync::BookmarkChangeProcessor; | 116 using browser_sync::BookmarkChangeProcessor; |
| 114 using browser_sync::BookmarkDataTypeController; | 117 using browser_sync::BookmarkDataTypeController; |
| 115 using browser_sync::BookmarkModelAssociator; | 118 using browser_sync::BookmarkModelAssociator; |
| 116 using browser_sync::ChromeReportUnrecoverableError; | 119 using browser_sync::ChromeReportUnrecoverableError; |
| 117 #if defined(ENABLE_EXTENSIONS) | 120 #if defined(ENABLE_EXTENSIONS) |
| 118 using browser_sync::ExtensionBackedDataTypeController; | 121 using browser_sync::ExtensionBackedDataTypeController; |
| 119 using browser_sync::ExtensionDataTypeController; | 122 using browser_sync::ExtensionDataTypeController; |
| 120 using browser_sync::ExtensionSettingDataTypeController; | 123 using browser_sync::ExtensionSettingDataTypeController; |
| 121 #endif | 124 #endif |
| 122 using browser_sync::HistoryDeleteDirectivesDataTypeController; | 125 using browser_sync::HistoryDeleteDirectivesDataTypeController; |
| 123 using browser_sync::PasswordDataTypeController; | 126 using browser_sync::PasswordDataTypeController; |
| 124 using browser_sync::SearchEngineDataTypeController; | 127 using browser_sync::SearchEngineDataTypeController; |
| 125 using browser_sync::SessionDataTypeController; | 128 using browser_sync::SessionDataTypeController; |
| 126 using browser_sync::SyncBackendHost; | 129 using browser_sync::SyncBackendHost; |
| 130 #if defined(ENABLE_THEMES) |
| 127 using browser_sync::ThemeDataTypeController; | 131 using browser_sync::ThemeDataTypeController; |
| 132 #endif |
| 128 using browser_sync::TypedUrlChangeProcessor; | 133 using browser_sync::TypedUrlChangeProcessor; |
| 129 using browser_sync::TypedUrlDataTypeController; | 134 using browser_sync::TypedUrlDataTypeController; |
| 130 using browser_sync::TypedUrlModelAssociator; | 135 using browser_sync::TypedUrlModelAssociator; |
| 131 using content::BrowserThread; | 136 using content::BrowserThread; |
| 132 using sync_driver::DataTypeController; | 137 using sync_driver::DataTypeController; |
| 133 using sync_driver::DataTypeErrorHandler; | 138 using sync_driver::DataTypeErrorHandler; |
| 134 using sync_driver::DataTypeManager; | 139 using sync_driver::DataTypeManager; |
| 135 using sync_driver::DataTypeManagerImpl; | 140 using sync_driver::DataTypeManagerImpl; |
| 136 using sync_driver::DataTypeManagerObserver; | 141 using sync_driver::DataTypeManagerObserver; |
| 137 using sync_driver::DeviceInfoDataTypeController; | 142 using sync_driver::DeviceInfoDataTypeController; |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 new TypedUrlModelAssociator(profile_sync_service, | 734 new TypedUrlModelAssociator(profile_sync_service, |
| 730 history_backend, | 735 history_backend, |
| 731 error_handler); | 736 error_handler); |
| 732 TypedUrlChangeProcessor* change_processor = | 737 TypedUrlChangeProcessor* change_processor = |
| 733 new TypedUrlChangeProcessor(profile_, | 738 new TypedUrlChangeProcessor(profile_, |
| 734 model_associator, | 739 model_associator, |
| 735 history_backend, | 740 history_backend, |
| 736 error_handler); | 741 error_handler); |
| 737 return SyncComponents(model_associator, change_processor); | 742 return SyncComponents(model_associator, change_processor); |
| 738 } | 743 } |
| OLD | NEW |