Fix a mis-merge in TLS changes.
Review URL: http://codereview.chromium.org/1699
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1983 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 3abf0c8..4b95532 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -90,9 +90,6 @@
FOR_EACH_OBSERVER(DestructionObserver, destruction_observers_,
WillDestroyCurrentMessageLoop());
- // OK, now make it so that no one can find us.
- lazy_tls_ptr.Pointer()->Set(NULL);
-
DCHECK(!state_);
// Clean up any unprocessed tasks, but take care: deleting a task could
@@ -113,7 +110,7 @@
DCHECK(!did_work);
// OK, now make it so that no one can find us.
- tls_index_.Set(NULL);
+ lazy_tls_ptr.Pointer()->Set(NULL);
}
void MessageLoop::AddDestructionObserver(DestructionObserver *obs) {