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

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

Issue 2046733003: Replicate WebInsecureRequestPolicy instead of a bool for strict mixed content checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@securitycontext
Patch Set: alexmos@ Created 4 years, 6 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
« no previous file with comments | « content/browser/frame_host/frame_tree_node.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_tree_node.cc
diff --git a/content/browser/frame_host/frame_tree_node.cc b/content/browser/frame_host/frame_tree_node.cc
index f6f62a54a942f6f7c9f854c49bee0f3f6bab421d..ab3b794c66f42c4c18b48a1fb6dd94b395f3c9a8 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -250,14 +250,12 @@ void FrameTreeNode::ResetContentSecurityPolicy() {
render_manager_.OnDidResetContentSecurityPolicy();
}
-void FrameTreeNode::SetEnforceStrictMixedContentChecking(bool should_enforce) {
- if (should_enforce ==
- replication_state_.should_enforce_strict_mixed_content_checking) {
+void FrameTreeNode::SetInsecureRequestPolicy(
+ blink::WebInsecureRequestPolicy policy) {
+ if (policy == replication_state_.insecure_request_policy)
return;
- }
- render_manager_.OnEnforceStrictMixedContentChecking(should_enforce);
- replication_state_.should_enforce_strict_mixed_content_checking =
- should_enforce;
+ render_manager_.OnEnforceInsecureRequestPolicy(policy);
+ replication_state_.insecure_request_policy = policy;
}
void FrameTreeNode::SetPendingSandboxFlags(
« no previous file with comments | « content/browser/frame_host/frame_tree_node.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698