Index: third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp |
diff --git a/third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp b/third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp |
index 52fc89225844c9e429df8a7080cd80b2c428728e..53c9b9ba67b4d8bf46ca73531b199b19d9048ca7 100644 |
--- a/third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp |
+++ b/third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp |
@@ -41,7 +41,8 @@ namespace blink { |
bool V8SQLStatementErrorCallback::handleEvent(SQLTransaction* transaction, |
SQLError* error) { |
v8::Isolate* isolate = m_scriptState->GetIsolate(); |
- ExecutionContext* execution_context = m_scriptState->GetExecutionContext(); |
+ ExecutionContext* execution_context = |
+ ExecutionContext::From(m_scriptState.Get()); |
if (!execution_context || execution_context->IsContextSuspended() || |
execution_context->IsContextDestroyed()) |
return true; |
@@ -69,7 +70,7 @@ bool V8SQLStatementErrorCallback::handleEvent(SQLTransaction* transaction, |
// the error callback did not return false, or there was no error callback. |
// Jump to the last step in the overall steps. |
if (!V8ScriptRunner::CallFunction(m_callback.NewLocal(isolate), |
- m_scriptState->GetExecutionContext(), |
+ ExecutionContext::From(m_scriptState.Get()), |
m_scriptState->GetContext()->Global(), |
WTF_ARRAY_LENGTH(argv), argv, isolate) |
.ToLocal(&result)) |