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

Unified Diff: third_party/WebKit/Source/core/origin_trials/OriginTrialContext.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/origin_trials/OriginTrialContext.cpp
diff --git a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp
index 6f9317af308b3f9927c822b7ec87cea66fbc59f2..a3ad1b7b2d0c8eae156623daff9f302de112df49 100644
--- a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp
+++ b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp
@@ -190,7 +190,7 @@ void OriginTrialContext::initializePendingFeatures() {
LocalFrame* frame = toDocument(supplementable())->frame();
if (!frame)
return;
- ScriptState* scriptState = ScriptState::forMainWorld(frame);
+ ScriptState* scriptState = toScriptStateForMainWorld(frame);
if (!scriptState)
return;
if (!scriptState->contextIsValid())

Powered by Google App Engine
This is Rietveld 408576698