| Index: content/renderer/content_security_policy_util.cc
|
| diff --git a/content/renderer/content_security_policy_util.cc b/content/renderer/content_security_policy_util.cc
|
| index 25a09d3cefb324e0602716c57cb92f97de747f73..7ba2900b3a88fcd8b6083e011c747af5a45b57f5 100644
|
| --- a/content/renderer/content_security_policy_util.cc
|
| +++ b/content/renderer/content_security_policy_util.cc
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "content/renderer/content_security_policy_util.h"
|
| +#include "third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h"
|
|
|
| namespace content {
|
|
|
| @@ -53,25 +54,4 @@
|
| policy.header.utf8()); // header
|
| }
|
|
|
| -blink::WebContentSecurityPolicyViolation BuildWebContentSecurityPolicyViolation(
|
| - const content::CSPViolationParams& violation_params) {
|
| - blink::WebContentSecurityPolicyViolation violation;
|
| - violation.directive = blink::WebString::fromASCII(violation_params.directive);
|
| - violation.effectiveDirective =
|
| - blink::WebString::fromASCII(violation_params.effective_directive);
|
| - violation.consoleMessage =
|
| - blink::WebString::fromASCII(violation_params.console_message);
|
| - violation.blockedUrl = violation_params.blocked_url;
|
| - violation.reportEndpoints = blink::WebVector<blink::WebString>(
|
| - violation_params.report_endpoints.size());
|
| - for (size_t i = 0; i < violation_params.report_endpoints.size(); ++i) {
|
| - violation.reportEndpoints[i] =
|
| - blink::WebString::fromASCII(violation_params.report_endpoints[i]);
|
| - }
|
| - violation.header = blink::WebString::fromASCII(violation_params.header);
|
| - violation.disposition = violation_params.disposition;
|
| - violation.afterRedirect = violation_params.after_redirect;
|
| - return violation;
|
| -}
|
| -
|
| } // namespace content
|
|
|