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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp

Issue 2821443002: Revert of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Revert Created 3 years, 8 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: third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp
index c997e919ffcfd68be02977f8e17972d69211635b..2d6a95dfb051417b88896a2e2b11fe8ca1e8c953 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp
@@ -143,7 +143,7 @@ IDBRequest* IDBIndex::openCursor(ScriptState* script_state,
WebIDBCursorDirection direction =
IDBCursor::StringToDirection(direction_string);
IDBKeyRange* key_range = IDBKeyRange::FromScriptValue(
- ExecutionContext::From(script_state), range, exception_state);
+ script_state->GetExecutionContext(), range, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -191,7 +191,7 @@ IDBRequest* IDBIndex::count(ScriptState* script_state,
}
IDBKeyRange* key_range = IDBKeyRange::FromScriptValue(
- ExecutionContext::From(script_state), range, exception_state);
+ script_state->GetExecutionContext(), range, exception_state);
if (exception_state.HadException())
return nullptr;
@@ -233,7 +233,7 @@ IDBRequest* IDBIndex::openKeyCursor(ScriptState* script_state,
WebIDBCursorDirection direction =
IDBCursor::StringToDirection(direction_string);
IDBKeyRange* key_range = IDBKeyRange::FromScriptValue(
- ExecutionContext::From(script_state), range, exception_state);
+ script_state->GetExecutionContext(), range, exception_state);
if (exception_state.HadException())
return nullptr;
if (!BackendDB()) {
@@ -319,7 +319,7 @@ IDBRequest* IDBIndex::GetInternal(ScriptState* script_state,
}
IDBKeyRange* key_range = IDBKeyRange::FromScriptValue(
- ExecutionContext::From(script_state), key, exception_state);
+ script_state->GetExecutionContext(), key, exception_state);
if (exception_state.HadException())
return nullptr;
if (!key_range) {
@@ -367,7 +367,7 @@ IDBRequest* IDBIndex::GetAllInternal(ScriptState* script_state,
}
IDBKeyRange* key_range = IDBKeyRange::FromScriptValue(
- ExecutionContext::From(script_state), range, exception_state);
+ script_state->GetExecutionContext(), range, exception_state);
if (exception_state.HadException())
return nullptr;
if (!BackendDB()) {

Powered by Google App Engine
This is Rietveld 408576698