Extensions: Consolidate and simplify CSP parsing.
This CL adds a csp_validator::ParseCSP method to parse a CSP string. Existing code doing the parsing is changed to use this new method. This CL should have no behavior change. Also add unit tests exercising the new method. BUG=896041 Change-Id: Ic97e31ab23b6d21c0b3ad4b771a2fd7c37bec6d4 Reviewed-on: https://chromium-review.googlesource.com/c/1292825 Commit-Queue: Karan Bhatia <karandeepb@chromium.org> Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#602224}
Showing
This diff is collapsed.
Please register or sign in to comment