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

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp

Issue 2810743003: Move ScriptState::GetExecutionContext (Part 3) (Closed)
Patch Set: Rebase 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/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))

Powered by Google App Engine
This is Rietveld 408576698