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

Unified Diff: Source/modules/indexeddb/IDBOpenDBRequest.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
« no previous file with comments | « Source/modules/indexeddb/IDBOpenDBRequest.h ('k') | Source/modules/indexeddb/IDBRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBOpenDBRequest.cpp
diff --git a/Source/modules/indexeddb/IDBOpenDBRequest.cpp b/Source/modules/indexeddb/IDBOpenDBRequest.cpp
index 5904017c1f049282296cd9a02521605c7bd1f6a6..9408c9df37c0032e3e48e6d434cda41350de70ca 100644
--- a/Source/modules/indexeddb/IDBOpenDBRequest.cpp
+++ b/Source/modules/indexeddb/IDBOpenDBRequest.cpp
@@ -39,15 +39,15 @@ using blink::WebIDBDatabase;
namespace WebCore {
-IDBOpenDBRequest* IDBOpenDBRequest::create(ExecutionContext* context, IDBDatabaseCallbacks* callbacks, int64_t transactionId, int64_t version)
+IDBOpenDBRequest* IDBOpenDBRequest::create(ScriptState* scriptState, IDBDatabaseCallbacks* callbacks, int64_t transactionId, int64_t version)
{
- IDBOpenDBRequest* request(adoptRefCountedGarbageCollected(new IDBOpenDBRequest(context, callbacks, transactionId, version)));
+ IDBOpenDBRequest* request(adoptRefCountedGarbageCollected(new IDBOpenDBRequest(scriptState, callbacks, transactionId, version)));
request->suspendIfNeeded();
return request;
}
-IDBOpenDBRequest::IDBOpenDBRequest(ExecutionContext* context, IDBDatabaseCallbacks* callbacks, int64_t transactionId, int64_t version)
- : IDBRequest(context, IDBAny::createNull(), 0)
+IDBOpenDBRequest::IDBOpenDBRequest(ScriptState* scriptState, IDBDatabaseCallbacks* callbacks, int64_t transactionId, int64_t version)
+ : IDBRequest(scriptState, IDBAny::createNull(), 0)
, m_databaseCallbacks(callbacks)
, m_transactionId(transactionId)
, m_version(version)
« no previous file with comments | « Source/modules/indexeddb/IDBOpenDBRequest.h ('k') | Source/modules/indexeddb/IDBRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698