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

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

Issue 295163005: Remove ScriptState::current() from IDBRequest (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/IDBTransactionTest.cpp
diff --git a/Source/modules/indexeddb/IDBTransactionTest.cpp b/Source/modules/indexeddb/IDBTransactionTest.cpp
index 8777ab179d7e2a09c3d353487e1865d0ce66a9c9..9dde7b5a275e406595c38f620e4125c2ba489ad4 100644
--- a/Source/modules/indexeddb/IDBTransactionTest.cpp
+++ b/Source/modules/indexeddb/IDBTransactionTest.cpp
@@ -55,6 +55,8 @@ public:
{
}
+ v8::Isolate* isolate() const { return m_scope->isolate(); }
+
ExecutionContext* executionContext()
{
return m_document.get();
@@ -107,7 +109,7 @@ TEST_F(IDBTransactionTest, EnsureLifetime)
EXPECT_EQ(3, transaction->refCount());
#endif
- RefPtrWillBePersistent<IDBRequest> request = IDBRequest::create(executionContext(), IDBAny::createUndefined(), transaction.get());
+ RefPtrWillBePersistent<IDBRequest> request = IDBRequest::create(ScriptState::current(isolate()), IDBAny::createUndefined(), transaction.get());
IDBPendingTransactionMonitor::from(*executionContext()).deactivateNewTransactions();
#if ENABLE(OILPAN)

Powered by Google App Engine
This is Rietveld 408576698