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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

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: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 8025c71da8d2e87e350907864428a552ff12c2fd..456ac049b85c1ca122dd6d88c5e441c0cbb7419d 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -1769,8 +1769,8 @@ void RenderFrameHostImpl::OnDidChangeName(const std::string& name,
}
void RenderFrameHostImpl::OnDidSetFeaturePolicyHeader(
- const std::string& header) {
- frame_tree_node()->SetFeaturePolicyHeader(header);
+ const std::vector<FeaturePolicyParsedWhitelist>& parsed_header) {
alexmos 2016/12/01 02:04:19 nit: I'm curious if we could make the type a bit m
raymes 2016/12/01 03:03:09 In blink I was trying to distinguish it from the F
alexmos 2016/12/01 22:27:54 Acknowledged.
+ frame_tree_node()->SetFeaturePolicyHeader(parsed_header);
}
void RenderFrameHostImpl::OnDidAddContentSecurityPolicy(

Powered by Google App Engine
This is Rietveld 408576698