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 "base/logging.h" | 6 #include "base/logging.h" |
7 #include "chrome/browser/defaults.h" | 7 #include "chrome/browser/defaults.h" |
8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" |
9 #include "chrome/browser/sync/glue/autofill_change_processor.h" | 9 #include "chrome/browser/sync/glue/autofill_change_processor.h" |
10 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" | 10 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 return SyncComponents(model_associator, change_processor); | 159 return SyncComponents(model_associator, change_processor); |
160 } | 160 } |
161 | 161 |
162 ProfileSyncFactory::SyncComponents | 162 ProfileSyncFactory::SyncComponents |
163 ProfileSyncFactoryImpl::CreateExtensionSyncComponents( | 163 ProfileSyncFactoryImpl::CreateExtensionSyncComponents( |
164 ProfileSyncService* profile_sync_service, | 164 ProfileSyncService* profile_sync_service, |
165 UnrecoverableErrorHandler* error_handler) { | 165 UnrecoverableErrorHandler* error_handler) { |
166 ExtensionModelAssociator* model_associator = | 166 ExtensionModelAssociator* model_associator = |
167 new ExtensionModelAssociator(profile_sync_service); | 167 new ExtensionModelAssociator(profile_sync_service); |
168 ExtensionChangeProcessor* change_processor = | 168 ExtensionChangeProcessor* change_processor = |
169 new ExtensionChangeProcessor(error_handler, model_associator); | 169 new ExtensionChangeProcessor(error_handler); |
170 return SyncComponents(model_associator, change_processor); | 170 return SyncComponents(model_associator, change_processor); |
171 } | 171 } |
172 | 172 |
173 ProfileSyncFactory::SyncComponents | 173 ProfileSyncFactory::SyncComponents |
174 ProfileSyncFactoryImpl::CreatePasswordSyncComponents( | 174 ProfileSyncFactoryImpl::CreatePasswordSyncComponents( |
175 ProfileSyncService* profile_sync_service, | 175 ProfileSyncService* profile_sync_service, |
176 PasswordStore* password_store, | 176 PasswordStore* password_store, |
177 UnrecoverableErrorHandler* error_handler) { | 177 UnrecoverableErrorHandler* error_handler) { |
178 PasswordModelAssociator* model_associator = | 178 PasswordModelAssociator* model_associator = |
179 new PasswordModelAssociator(profile_sync_service, | 179 new PasswordModelAssociator(profile_sync_service, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 browser_sync::UnrecoverableErrorHandler* error_handler) { | 215 browser_sync::UnrecoverableErrorHandler* error_handler) { |
216 TypedUrlModelAssociator* model_associator = | 216 TypedUrlModelAssociator* model_associator = |
217 new TypedUrlModelAssociator(profile_sync_service, | 217 new TypedUrlModelAssociator(profile_sync_service, |
218 history_backend); | 218 history_backend); |
219 TypedUrlChangeProcessor* change_processor = | 219 TypedUrlChangeProcessor* change_processor = |
220 new TypedUrlChangeProcessor(model_associator, | 220 new TypedUrlChangeProcessor(model_associator, |
221 history_backend, | 221 history_backend, |
222 error_handler); | 222 error_handler); |
223 return SyncComponents(model_associator, change_processor); | 223 return SyncComponents(model_associator, change_processor); |
224 } | 224 } |
OLD | NEW |