OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/profiles/profile.h" | 6 #include "chrome/browser/profiles/profile.h" |
7 #include "chrome/browser/sync/glue/app_data_type_controller.h" | 7 #include "chrome/browser/sync/glue/app_data_type_controller.h" |
8 #include "chrome/browser/sync/glue/autofill_change_processor.h" | 8 #include "chrome/browser/sync/glue/autofill_change_processor.h" |
9 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" | 9 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" |
10 #include "chrome/browser/sync/glue/autofill_model_associator.h" | 10 #include "chrome/browser/sync/glue/autofill_model_associator.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "chrome/browser/sync/glue/theme_change_processor.h" | 32 #include "chrome/browser/sync/glue/theme_change_processor.h" |
33 #include "chrome/browser/sync/glue/theme_data_type_controller.h" | 33 #include "chrome/browser/sync/glue/theme_data_type_controller.h" |
34 #include "chrome/browser/sync/glue/theme_model_associator.h" | 34 #include "chrome/browser/sync/glue/theme_model_associator.h" |
35 #include "chrome/browser/sync/glue/typed_url_change_processor.h" | 35 #include "chrome/browser/sync/glue/typed_url_change_processor.h" |
36 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h" | 36 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h" |
37 #include "chrome/browser/sync/glue/typed_url_model_associator.h" | 37 #include "chrome/browser/sync/glue/typed_url_model_associator.h" |
38 #include "chrome/browser/sync/profile_sync_service.h" | 38 #include "chrome/browser/sync/profile_sync_service.h" |
39 #include "chrome/browser/sync/profile_sync_factory_impl.h" | 39 #include "chrome/browser/sync/profile_sync_factory_impl.h" |
40 #include "chrome/browser/webdata/web_data_service.h" | 40 #include "chrome/browser/webdata/web_data_service.h" |
41 #include "chrome/common/chrome_switches.h" | 41 #include "chrome/common/chrome_switches.h" |
42 #include "chrome/common/pref_names.h" | |
43 | 42 |
44 using browser_sync::AppDataTypeController; | 43 using browser_sync::AppDataTypeController; |
45 using browser_sync::AutofillChangeProcessor; | 44 using browser_sync::AutofillChangeProcessor; |
46 using browser_sync::AutofillProfileChangeProcessor; | 45 using browser_sync::AutofillProfileChangeProcessor; |
47 using browser_sync::AutofillDataTypeController; | 46 using browser_sync::AutofillDataTypeController; |
48 using browser_sync::AutofillProfileDataTypeController; | 47 using browser_sync::AutofillProfileDataTypeController; |
49 using browser_sync::AutofillModelAssociator; | 48 using browser_sync::AutofillModelAssociator; |
50 using browser_sync::AutofillProfileModelAssociator; | 49 using browser_sync::AutofillProfileModelAssociator; |
51 using browser_sync::BookmarkChangeProcessor; | 50 using browser_sync::BookmarkChangeProcessor; |
52 using browser_sync::BookmarkDataTypeController; | 51 using browser_sync::BookmarkDataTypeController; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 AutofillModelAssociator* model_associator = | 186 AutofillModelAssociator* model_associator = |
188 new AutofillModelAssociator(profile_sync_service, | 187 new AutofillModelAssociator(profile_sync_service, |
189 web_database, | 188 web_database, |
190 personal_data); | 189 personal_data); |
191 AutofillChangeProcessor* change_processor = | 190 AutofillChangeProcessor* change_processor = |
192 new AutofillChangeProcessor(model_associator, | 191 new AutofillChangeProcessor(model_associator, |
193 web_database, | 192 web_database, |
194 personal_data, | 193 personal_data, |
195 error_handler); | 194 error_handler); |
196 return SyncComponents(model_associator, change_processor); | 195 return SyncComponents(model_associator, change_processor); |
197 | |
198 } | 196 } |
199 | 197 |
200 ProfileSyncFactory::SyncComponents | 198 ProfileSyncFactory::SyncComponents |
201 ProfileSyncFactoryImpl::CreateAutofillProfileSyncComponents( | 199 ProfileSyncFactoryImpl::CreateAutofillProfileSyncComponents( |
202 ProfileSyncService* profile_sync_service, | 200 ProfileSyncService* profile_sync_service, |
203 WebDatabase* web_database, | 201 WebDatabase* web_database, |
204 PersonalDataManager* personal_data, | 202 PersonalDataManager* personal_data, |
205 browser_sync::UnrecoverableErrorHandler* error_handler) { | 203 browser_sync::UnrecoverableErrorHandler* error_handler) { |
206 | 204 |
207 AutofillProfileModelAssociator* model_associator = | 205 AutofillProfileModelAssociator* model_associator = |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 ProfileSyncFactory::SyncComponents | 296 ProfileSyncFactory::SyncComponents |
299 ProfileSyncFactoryImpl::CreateSessionSyncComponents( | 297 ProfileSyncFactoryImpl::CreateSessionSyncComponents( |
300 ProfileSyncService* profile_sync_service, | 298 ProfileSyncService* profile_sync_service, |
301 UnrecoverableErrorHandler* error_handler) { | 299 UnrecoverableErrorHandler* error_handler) { |
302 SessionModelAssociator* model_associator = | 300 SessionModelAssociator* model_associator = |
303 new SessionModelAssociator(profile_sync_service); | 301 new SessionModelAssociator(profile_sync_service); |
304 SessionChangeProcessor* change_processor = | 302 SessionChangeProcessor* change_processor = |
305 new SessionChangeProcessor(error_handler, model_associator); | 303 new SessionChangeProcessor(error_handler, model_associator); |
306 return SyncComponents(model_associator, change_processor); | 304 return SyncComponents(model_associator, change_processor); |
307 } | 305 } |
OLD | NEW |