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

Unified Diff: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp

Issue 2811793005: Rename LocalFrame::Script() to GetScriptController() (Closed)
Patch Set: 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/frame/csp/ContentSecurityPolicy.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
index d708cfe37d73ad9a4f6b42e156dd8ac3d8a82054..c039bea918ac3f70932439bee7282a10e43f053f 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
@@ -1481,8 +1481,11 @@ bool ContentSecurityPolicy::ShouldBypassMainWorld(
const ExecutionContext* context) {
if (context && context->IsDocument()) {
const Document* document = ToDocument(context);
- if (document->GetFrame())
- return document->GetFrame()->Script().ShouldBypassMainWorldCSP();
+ if (document->GetFrame()) {
+ return document->GetFrame()
+ ->GetScriptController()
+ .ShouldBypassMainWorldCSP();
+ }
}
return false;
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/html/HTMLDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698