summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public/engine/passive_model_worker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sync/internal_api/public/engine/passive_model_worker.cc')
-rw-r--r--sync/internal_api/public/engine/passive_model_worker.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sync/internal_api/public/engine/passive_model_worker.cc b/sync/internal_api/public/engine/passive_model_worker.cc
index 3117194..02036d5 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();
}