| Index: content/common/indexed_db/indexed_db_dispatcher.cc
|
| ===================================================================
|
| --- content/common/indexed_db/indexed_db_dispatcher.cc (revision 131682)
|
| +++ content/common/indexed_db/indexed_db_dispatcher.cc (working copy)
|
| @@ -38,9 +38,6 @@
|
|
|
| namespace {
|
|
|
| -IndexedDBDispatcher* const HAS_BEEN_DELETED =
|
| - reinterpret_cast<IndexedDBDispatcher*>(0x1);
|
| -
|
| int32 CurrentWorkerId() {
|
| return WorkerTaskRunner::Instance()->CurrentWorkerId();
|
| }
|
| @@ -54,14 +51,10 @@
|
| }
|
|
|
| IndexedDBDispatcher::~IndexedDBDispatcher() {
|
| - g_idb_dispatcher_tls.Pointer()->Set(HAS_BEEN_DELETED);
|
| + g_idb_dispatcher_tls.Pointer()->Set(NULL);
|
| }
|
|
|
| IndexedDBDispatcher* IndexedDBDispatcher::ThreadSpecificInstance() {
|
| - if (g_idb_dispatcher_tls.Pointer()->Get() == HAS_BEEN_DELETED) {
|
| - NOTREACHED() << "Re-instantiating TLS IndexedDBDispatcher.";
|
| - g_idb_dispatcher_tls.Pointer()->Set(NULL);
|
| - }
|
| if (g_idb_dispatcher_tls.Pointer()->Get())
|
| return g_idb_dispatcher_tls.Pointer()->Get();
|
|
|
|
|