Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(608)

Side by Side Diff: chrome/browser/sync/profile_sync_factory_impl.cc

Issue 3110008: Massive refactoring of extensions sync code (Closed) Base URL: 76.121.192.83:~/projects/chromium/src
Patch Set: Fixed compile error Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/sync/glue/extension_util_unittest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/extension_util_unittest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698