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/about_flags.h" | 7 #include "chrome/browser/about_flags.h" |
8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/extensions/api/storage/settings_frontend.h" | 10 #include "chrome/browser/extensions/api/storage/settings_frontend.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include "chrome/browser/sync/glue/typed_url_model_associator.h" | 49 #include "chrome/browser/sync/glue/typed_url_model_associator.h" |
50 #include "chrome/browser/sync/glue/ui_data_type_controller.h" | 50 #include "chrome/browser/sync/glue/ui_data_type_controller.h" |
51 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" | 51 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" |
52 #include "chrome/browser/sync/profile_sync_service.h" | 52 #include "chrome/browser/sync/profile_sync_service.h" |
53 #include "chrome/browser/sync/profile_sync_service_factory.h" | 53 #include "chrome/browser/sync/profile_sync_service_factory.h" |
54 #include "chrome/browser/themes/theme_service.h" | 54 #include "chrome/browser/themes/theme_service.h" |
55 #include "chrome/browser/themes/theme_service_factory.h" | 55 #include "chrome/browser/themes/theme_service_factory.h" |
56 #include "chrome/browser/themes/theme_syncable_service.h" | 56 #include "chrome/browser/themes/theme_syncable_service.h" |
57 #include "chrome/browser/webdata/autocomplete_syncable_service.h" | 57 #include "chrome/browser/webdata/autocomplete_syncable_service.h" |
58 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" | 58 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" |
| 59 #include "chrome/browser/webdata/web_data_service_factory.h" |
59 #include "chrome/common/chrome_switches.h" | 60 #include "chrome/common/chrome_switches.h" |
60 #include "chrome/common/pref_names.h" | 61 #include "chrome/common/pref_names.h" |
61 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 62 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
62 #include "content/public/browser/browser_thread.h" | 63 #include "content/public/browser/browser_thread.h" |
63 #include "sync/api/syncable_service.h" | 64 #include "sync/api/syncable_service.h" |
64 | 65 |
65 #if defined(ENABLE_MANAGED_USERS) | 66 #if defined(ENABLE_MANAGED_USERS) |
66 #include "chrome/browser/managed_mode/managed_user_service.h" | 67 #include "chrome/browser/managed_mode/managed_user_service.h" |
67 #include "chrome/browser/managed_mode/managed_user_settings_service.h" | 68 #include "chrome/browser/managed_mode/managed_user_settings_service.h" |
68 #include "chrome/browser/managed_mode/managed_user_settings_service_factory.h" | 69 #include "chrome/browser/managed_mode/managed_user_settings_service_factory.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 using browser_sync::UIDataTypeController; | 111 using browser_sync::UIDataTypeController; |
111 using content::BrowserThread; | 112 using content::BrowserThread; |
112 | 113 |
113 ProfileSyncComponentsFactoryImpl::ProfileSyncComponentsFactoryImpl( | 114 ProfileSyncComponentsFactoryImpl::ProfileSyncComponentsFactoryImpl( |
114 Profile* profile, CommandLine* command_line) | 115 Profile* profile, CommandLine* command_line) |
115 : profile_(profile), | 116 : profile_(profile), |
116 command_line_(command_line), | 117 command_line_(command_line), |
117 extension_system_( | 118 extension_system_( |
118 extensions::ExtensionSystemFactory::GetForProfile(profile)), | 119 extensions::ExtensionSystemFactory::GetForProfile(profile)), |
119 web_data_service_( | 120 web_data_service_( |
120 autofill::AutofillWebDataService::FromBrowserContext(profile_)) { | 121 WebDataServiceFactory::GetAutofillWebDataForProfile(profile_)) { |
121 } | 122 } |
122 | 123 |
123 ProfileSyncComponentsFactoryImpl::~ProfileSyncComponentsFactoryImpl() { | 124 ProfileSyncComponentsFactoryImpl::~ProfileSyncComponentsFactoryImpl() { |
124 } | 125 } |
125 | 126 |
126 void ProfileSyncComponentsFactoryImpl::RegisterDataTypes( | 127 void ProfileSyncComponentsFactoryImpl::RegisterDataTypes( |
127 ProfileSyncService* pss) { | 128 ProfileSyncService* pss) { |
128 RegisterCommonDataTypes(pss); | 129 RegisterCommonDataTypes(pss); |
129 #if !defined(OS_ANDROID) | 130 #if !defined(OS_ANDROID) |
130 RegisterDesktopDataTypes(pss); | 131 RegisterDesktopDataTypes(pss); |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 ProfileSyncComponentsFactory::SyncComponents | 489 ProfileSyncComponentsFactory::SyncComponents |
489 ProfileSyncComponentsFactoryImpl::CreateSessionSyncComponents( | 490 ProfileSyncComponentsFactoryImpl::CreateSessionSyncComponents( |
490 ProfileSyncService* profile_sync_service, | 491 ProfileSyncService* profile_sync_service, |
491 DataTypeErrorHandler* error_handler) { | 492 DataTypeErrorHandler* error_handler) { |
492 SessionModelAssociator* model_associator = | 493 SessionModelAssociator* model_associator = |
493 new SessionModelAssociator(profile_sync_service, error_handler); | 494 new SessionModelAssociator(profile_sync_service, error_handler); |
494 SessionChangeProcessor* change_processor = | 495 SessionChangeProcessor* change_processor = |
495 new SessionChangeProcessor(error_handler, model_associator); | 496 new SessionChangeProcessor(error_handler, model_associator); |
496 return SyncComponents(model_associator, change_processor); | 497 return SyncComponents(model_associator, change_processor); |
497 } | 498 } |
OLD | NEW |