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

Unified Diff: third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp

Issue 2811863002: Move ScriptState::GetExecutionContext (Part 4) (Closed)
Patch Set: Fix Document.cpp 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/core/inspector/MainThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
index 7a41ab9943b2b54fa0900f0116b7f871095b3227..e5e95aad60bc4956c91761311b04168cd234e6a0 100644
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
@@ -161,8 +161,8 @@ void MainThreadDebugger::ContextCreated(ScriptState* script_state,
context_info.origin = ToV8InspectorStringView(origin_string);
context_info.auxData = ToV8InspectorStringView(aux_data);
context_info.hasMemoryOnConsole =
- script_state->GetExecutionContext() &&
- script_state->GetExecutionContext()->IsDocument();
+ ExecutionContext::From(script_state) &&
+ ExecutionContext::From(script_state)->IsDocument();
GetV8Inspector()->contextCreated(context_info);
}

Powered by Google App Engine
This is Rietveld 408576698