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

Unified Diff: chrome/browser/sync/glue/ui_data_type_controller.cc

Issue 247433004: sync: remove CreateSharedChangeProcessor from ProfileSyncComponentsFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove SCPFactory Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/ui_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/ui_data_type_controller.cc b/chrome/browser/sync/glue/ui_data_type_controller.cc
index bbd840ae51a175df225155a1b03cf579d219a65f..b1274423aa7a8e3d00ba02bac3a4546e8b82dbd1 100644
--- a/chrome/browser/sync/glue/ui_data_type_controller.cc
+++ b/chrome/browser/sync/glue/ui_data_type_controller.cc
@@ -66,13 +66,10 @@ void UIDataTypeController::LoadModels(
type()));
return;
}
-
// Since we can't be called multiple times before Stop() is called,
// |shared_change_processor_| must be NULL here.
DCHECK(!shared_change_processor_.get());
- shared_change_processor_ =
- profile_sync_factory_->CreateSharedChangeProcessor();
- DCHECK(shared_change_processor_.get());
+ shared_change_processor_ = new SharedChangeProcessor();
model_load_callback_ = model_load_callback;
state_ = MODEL_STARTING;
« no previous file with comments | « chrome/browser/sync/glue/shared_change_processor_mock.cc ('k') | chrome/browser/sync/glue/ui_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698