Index: sync/internal_api/public/engine/passive_model_worker.cc |
diff --git a/sync/internal_api/public/engine/passive_model_worker.cc b/sync/internal_api/public/engine/passive_model_worker.cc |
index 3117194b506c22882dc558b0e69bf0e6c51c4842..02036d500f845f4953034412418b3e6ebbcfc3c7 100644 |
--- a/sync/internal_api/public/engine/passive_model_worker.cc |
+++ b/sync/internal_api/public/engine/passive_model_worker.cc |
@@ -18,6 +18,7 @@ PassiveModelWorker::~PassiveModelWorker() { |
} |
void PassiveModelWorker::RegisterForLoopDestruction() { |
+ base::MessageLoop::current()->AddDestructionObserver(this); |
SetWorkingLoopToCurrent(); |
} |