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/extension_data_type_controller.h" | 26 #include "chrome/browser/sync/glue/extension_data_type_controller.h" |
27 #include "chrome/browser/sync/glue/extension_setting_data_type_controller.h" | 27 #include "chrome/browser/sync/glue/extension_setting_data_type_controller.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/shared_change_processor.h" | |
31 #include "chrome/browser/sync/glue/sync_backend_host.h" | 30 #include "chrome/browser/sync/glue/sync_backend_host.h" |
32 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" | 31 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" |
33 #include "chrome/browser/sync/glue/theme_data_type_controller.h" | 32 #include "chrome/browser/sync/glue/theme_data_type_controller.h" |
34 #include "chrome/browser/sync/glue/typed_url_change_processor.h" | 33 #include "chrome/browser/sync/glue/typed_url_change_processor.h" |
35 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h" | 34 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h" |
36 #include "chrome/browser/sync/glue/typed_url_model_associator.h" | 35 #include "chrome/browser/sync/glue/typed_url_model_associator.h" |
37 #include "chrome/browser/sync/glue/ui_data_type_controller.h" | 36 #include "chrome/browser/sync/glue/ui_data_type_controller.h" |
38 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" | 37 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" |
39 #include "chrome/browser/sync/profile_sync_service.h" | 38 #include "chrome/browser/sync/profile_sync_service.h" |
40 #include "chrome/browser/sync/profile_sync_service_factory.h" | 39 #include "chrome/browser/sync/profile_sync_service_factory.h" |
41 #include "chrome/browser/sync/sessions/session_data_type_controller.h" | 40 #include "chrome/browser/sync/sessions/session_data_type_controller.h" |
42 #include "chrome/browser/themes/theme_service.h" | 41 #include "chrome/browser/themes/theme_service.h" |
43 #include "chrome/browser/themes/theme_service_factory.h" | 42 #include "chrome/browser/themes/theme_service_factory.h" |
44 #include "chrome/browser/themes/theme_syncable_service.h" | 43 #include "chrome/browser/themes/theme_syncable_service.h" |
45 #include "chrome/browser/webdata/autocomplete_syncable_service.h" | 44 #include "chrome/browser/webdata/autocomplete_syncable_service.h" |
46 #include "chrome/browser/webdata/web_data_service_factory.h" | 45 #include "chrome/browser/webdata/web_data_service_factory.h" |
47 #include "chrome/common/chrome_switches.h" | 46 #include "chrome/common/chrome_switches.h" |
48 #include "chrome/common/chrome_version_info.h" | 47 #include "chrome/common/chrome_version_info.h" |
49 #include "chrome/common/pref_names.h" | 48 #include "chrome/common/pref_names.h" |
50 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" | 49 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" |
51 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 50 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
52 #include "components/dom_distiller/core/dom_distiller_service.h" | 51 #include "components/dom_distiller/core/dom_distiller_service.h" |
53 #include "components/password_manager/core/browser/password_store.h" | 52 #include "components/password_manager/core/browser/password_store.h" |
54 #include "components/signin/core/browser/signin_manager.h" | 53 #include "components/signin/core/browser/signin_manager.h" |
55 #include "components/sync_driver/data_type_manager_impl.h" | 54 #include "components/sync_driver/data_type_manager_impl.h" |
56 #include "components/sync_driver/data_type_manager_observer.h" | 55 #include "components/sync_driver/data_type_manager_observer.h" |
57 #include "components/sync_driver/generic_change_processor.h" | 56 #include "components/sync_driver/generic_change_processor.h" |
58 #include "components/sync_driver/proxy_data_type_controller.h" | 57 #include "components/sync_driver/proxy_data_type_controller.h" |
| 58 #include "components/sync_driver/shared_change_processor.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/attachment_service_impl.h" | 62 #include "sync/api/attachments/attachment_service_impl.h" |
63 #include "sync/api/syncable_service.h" | 63 #include "sync/api/syncable_service.h" |
64 #include "sync/internal_api/public/attachments/fake_attachment_store.h" | 64 #include "sync/internal_api/public/attachments/fake_attachment_store.h" |
65 #include "sync/internal_api/public/attachments/fake_attachment_uploader.h" | 65 #include "sync/internal_api/public/attachments/fake_attachment_uploader.h" |
66 | 66 |
67 #if defined(ENABLE_EXTENSIONS) | 67 #if defined(ENABLE_EXTENSIONS) |
68 #include "chrome/browser/extensions/api/storage/settings_sync_util.h" | 68 #include "chrome/browser/extensions/api/storage/settings_sync_util.h" |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 new TypedUrlModelAssociator(profile_sync_service, | 621 new TypedUrlModelAssociator(profile_sync_service, |
622 history_backend, | 622 history_backend, |
623 error_handler); | 623 error_handler); |
624 TypedUrlChangeProcessor* change_processor = | 624 TypedUrlChangeProcessor* change_processor = |
625 new TypedUrlChangeProcessor(profile_, | 625 new TypedUrlChangeProcessor(profile_, |
626 model_associator, | 626 model_associator, |
627 history_backend, | 627 history_backend, |
628 error_handler); | 628 error_handler); |
629 return SyncComponents(model_associator, change_processor); | 629 return SyncComponents(model_associator, change_processor); |
630 } | 630 } |
OLD | NEW |