summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/glue/browser_thread_model_worker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sync/glue/browser_thread_model_worker.cc')
-rw-r--r--chrome/browser/sync/glue/browser_thread_model_worker.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/sync/glue/browser_thread_model_worker.cc b/chrome/browser/sync/glue/browser_thread_model_worker.cc
index 093d282..7f4024a 100644
--- a/chrome/browser/sync/glue/browser_thread_model_worker.cc
+++ b/chrome/browser/sync/glue/browser_thread_model_worker.cc
@@ -50,6 +50,7 @@ BrowserThreadModelWorker::~BrowserThreadModelWorker() {}
void BrowserThreadModelWorker::RegisterForLoopDestruction() {
if (BrowserThread::CurrentlyOn(thread_)) {
+ base::MessageLoop::current()->AddDestructionObserver(this);
SetWorkingLoopToCurrent();
} else {
BrowserThread::PostTask(