Index: chrome/browser/sync/glue/non_ui_data_type_controller.cc |
diff --git a/chrome/browser/sync/glue/non_ui_data_type_controller.cc b/chrome/browser/sync/glue/non_ui_data_type_controller.cc |
index ba47bcf7d1f4403288b06459d08b400ae3f7ebb2..e14a8fdf949d70d31fc75e4012af798c107b1191 100644 |
--- a/chrome/browser/sync/glue/non_ui_data_type_controller.cc |
+++ b/chrome/browser/sync/glue/non_ui_data_type_controller.cc |
@@ -20,6 +20,11 @@ using content::BrowserThread; |
namespace browser_sync { |
+SharedChangeProcessor* |
+NonUIDataTypeController::CreateSharedChangeProcessor() { |
+ return new SharedChangeProcessor(); |
+} |
+ |
NonUIDataTypeController::NonUIDataTypeController( |
scoped_refptr<base::MessageLoopProxy> ui_thread, |
const base::Closure& error_callback, |
@@ -47,12 +52,10 @@ void NonUIDataTypeController::LoadModels( |
} |
state_ = MODEL_STARTING; |
- |
// 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(); |
+ shared_change_processor_ = CreateSharedChangeProcessor(); |
DCHECK(shared_change_processor_.get()); |
model_load_callback_ = model_load_callback; |