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

Unified Diff: content/common/content_security_policy/csp_policy.cc

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Fix tests. Created 3 years, 10 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: content/common/content_security_policy/csp_policy.cc
diff --git a/content/common/content_security_policy/csp_policy.cc b/content/common/content_security_policy/csp_policy.cc
index 0abbd3437381ebf0b6ac53beed7e2a9394efab68..763aaed3284a263008c563fdfccff549d9479fd1 100644
--- a/content/common/content_security_policy/csp_policy.cc
+++ b/content/common/content_security_policy/csp_policy.cc
@@ -143,12 +143,13 @@ void CSPPolicy::ReportViolation(CSPContext* context,
message << "\n";
context->LogToConsole(message.str());
- context->ReportViolation(CSPDirective::NameToString(directive.name),
- CSPDirective::NameToString(directive_name),
- message.str(), url, report_endpoints,
- // TODO(arthursonzogni): consider passing the
- // original header
- "", disposition);
+ context->ReportViolation(
+ CSPViolationParams(CSPDirective::NameToString(directive.name),
+ CSPDirective::NameToString(directive_name),
+ message.str(), url, report_endpoints,
+ // TODO(arthursonzogni): consider passing the
+ // original header
+ "", disposition));
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698