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

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: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… Created 4 years 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 5336e87bd1413da6cf7435c9031e2bb7f0af1f40..ca0b64438445d62cebe2e84c25b612efe06fc650 100644
--- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
@@ -433,14 +433,14 @@ void WebRemoteFrameImpl::setReplicatedName(const WebString& name,
}
void WebRemoteFrameImpl::setReplicatedFeaturePolicyHeader(
- const WebString& headerValue) const {
+ const WebParsedFeaturePolicy& parsedHeader) const {
if (RuntimeEnabledFeatures::featurePolicyEnabled()) {
FeaturePolicy* parentFeaturePolicy = nullptr;
if (parent()) {
Frame* parentFrame = frame()->client()->parent();
parentFeaturePolicy = parentFrame->securityContext()->getFeaturePolicy();
}
- frame()->securityContext()->setFeaturePolicyFromHeader(headerValue,
+ frame()->securityContext()->setFeaturePolicyFromHeader(parsedHeader,
parentFeaturePolicy);
}
}
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.h ('k') | third_party/WebKit/public/platform/WebFeaturePolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698