Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
| diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
| index d501f9bbe8cf94dc2ef1ebf0f6b6d96467255f76..041ca88f55a15b016d9b184588ae7d5da7c45cbc 100644 |
| --- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
| +++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
| @@ -164,8 +164,7 @@ bool CSPDirectiveList::checkEval(SourceListDirective* directive) const { |
| } |
| bool CSPDirectiveList::checkInline(SourceListDirective* directive) const { |
|
Mike West
2016/11/29 12:00:50
Can you just remove this method entirely, since it
|
| - return !directive || |
| - (directive->allowInline() && !directive->isHashOrNoncePresent()); |
| + return !directive || directive->allowAllInline(); |
| } |
| bool CSPDirectiveList::isMatchingNoncePresent(SourceListDirective* directive, |