Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2439)

Unified Diff: Source/modules/indexeddb/IDBCursor.cpp

Issue 623033002: Oilpan: Add support of pre-finalization callback to Oilpan infrastructure. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a FIXME Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/indexeddb/IDBCursor.cpp
diff --git a/Source/modules/indexeddb/IDBCursor.cpp b/Source/modules/indexeddb/IDBCursor.cpp
index 904508b0e6d0f183dbb06a279a10613ec4f7e2ac..39d3c46b6e7f57fb9939500b77b60ce0747a6712 100644
--- a/Source/modules/indexeddb/IDBCursor.cpp
+++ b/Source/modules/indexeddb/IDBCursor.cpp
@@ -333,7 +333,7 @@ void IDBCursor::setValueReady(IDBKey* key, IDBKey* primaryKey, PassRefPtr<Shared
m_blobInfo = blobInfo;
m_valueDirty = true;
if (m_blobInfo && m_blobInfo->size() > 0)
- V8PerIsolateData::from(m_request->scriptState()->isolate())->ensureIDBPendingTransactionMonitor()->registerCursor(*this);
+ ThreadState::current()->registerPreFinalizer(*this);
}
m_gotValue = true;
@@ -360,7 +360,7 @@ void IDBCursor::handleBlobAcks()
ASSERT(m_request);
m_transaction->db()->ackReceivedBlobs(m_blobInfo.get());
m_blobInfo.clear();
- V8PerIsolateData::from(m_request->scriptState()->isolate())->ensureIDBPendingTransactionMonitor()->unregisterCursor(*this);
+ ThreadState::current()->unregisterPreFinalizer(*this);
}
}

Powered by Google App Engine
This is Rietveld 408576698