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

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

Issue 2764993002: CSP: group policies in didAddContentSecurityPolicy. (Closed)
Patch Set: Rebase. Created 3 years, 9 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_context_unittest.cc
diff --git a/content/common/content_security_policy/csp_context_unittest.cc b/content/common/content_security_policy/csp_context_unittest.cc
index 41bbca409532871832e6ab84c6de007cb687980d..e34c300d68cba222f616b7790c9846c3e6bba8e1 100644
--- a/content/common/content_security_policy/csp_context_unittest.cc
+++ b/content/common/content_security_policy/csp_context_unittest.cc
@@ -35,11 +35,11 @@ class CSPContextTest : public CSPContext {
ContentSecurityPolicy BuildPolicy(CSPDirective::Name directive_name,
std::vector<CSPSource> sources) {
return ContentSecurityPolicy(
- blink::WebContentSecurityPolicyTypeEnforce,
- blink::WebContentSecurityPolicySourceHTTP,
+ ContentSecurityPolicyHeader(std::string(), // header
+ blink::WebContentSecurityPolicyTypeEnforce,
+ blink::WebContentSecurityPolicySourceHTTP),
{CSPDirective(directive_name, CSPSourceList(false, false, sources))},
- std::vector<std::string>(), // report_end_points
- std::string()); // header
+ std::vector<std::string>()); // report_end_points
}
} // namespace;

Powered by Google App Engine
This is Rietveld 408576698