Index: chrome/browser/sync/glue/fake_data_type_controller.cc |
diff --git a/chrome/browser/sync/glue/fake_data_type_controller.cc b/chrome/browser/sync/glue/fake_data_type_controller.cc |
index b228c5d74d855659a78965d2b97dbffbd2773042..eca42781cb37bc115ec80da5e0f90d854a8a8966 100644 |
--- a/chrome/browser/sync/glue/fake_data_type_controller.cc |
+++ b/chrome/browser/sync/glue/fake_data_type_controller.cc |
@@ -74,6 +74,13 @@ void FakeDataTypeController::FinishStart(StartResult result) { |
// * -> NOT_RUNNING |
void FakeDataTypeController::Stop() { |
state_ = NOT_RUNNING; |
+ if (!model_load_callback_.is_null()) { |
+ // Real data type controllers run the callback and specify "ABORTED" as an |
+ // error. We should probably find a way to use the real code and mock out |
+ // unnecessary pieces. |
+ SimulateModelLoadFinishing(); |
+ } |
+ |
// The DTM still expects |last_start_callback_| to be called back. |
if (!last_start_callback_.is_null()) { |
csync::SyncError error(FROM_HERE, "Fake error", type_); |