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

Unified Diff: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Created 4 years, 1 month 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/web/WebRemoteFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
index 83256796abfc75d8aeb4ce0ab09a10556f33faaf..b656c0e940353307d3f43cb1868306b6c9a1a263 100644
--- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
@@ -433,7 +433,7 @@ void WebRemoteFrameImpl::setReplicatedName(const WebString& name,
}
void WebRemoteFrameImpl::setReplicatedFeaturePolicyHeader(
- const WebString& headerValue) const {
+ const WebVector<WebFeaturePolicy::ParsedWhitelist>& headerPolicy) const {
if (RuntimeEnabledFeatures::featurePolicyEnabled()) {
SecurityContext* parentSecurityContext = nullptr;
if (parent()) {
@@ -441,7 +441,7 @@ void WebRemoteFrameImpl::setReplicatedFeaturePolicyHeader(
parentSecurityContext = parentFrame->securityContext();
}
frame()->securityContext()->setFeaturePolicyFromHeader(
- headerValue, parentSecurityContext);
+ headerPolicy, parentSecurityContext);
}
}

Powered by Google App Engine
This is Rietveld 408576698