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

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

Issue 2796653003: Move ScriptState::forWorld/ScriptState::forMainWorld (Part 2) (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/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 ad9f2e7638d4598b3ebfba2dc9229c692815e213..7a3c7d5e7bce7552cfa0418292e8819246bab972 100644
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
@@ -278,7 +278,7 @@ void MainThreadDebugger::unmuteMetrics(int contextGroupId) {
v8::Local<v8::Context> MainThreadDebugger::ensureDefaultContextInGroup(
int contextGroupId) {
LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId);
- ScriptState* scriptState = frame ? ScriptState::forMainWorld(frame) : nullptr;
+ ScriptState* scriptState = frame ? toScriptStateForMainWorld(frame) : nullptr;
return scriptState ? scriptState->context() : v8::Local<v8::Context>();
}

Powered by Google App Engine
This is Rietveld 408576698