Use Optional<T> and StringPiece liberally in base::JSONParser.
This should make the parser more robust by joining the can-consume checks with the actual input byte consumption, preventing the internal parser state from becoming inconsistent. Bug: 489301 Change-Id: I33a0f5d9c5daa0b0ad186570393ceaf8fdba8a70 Reviewed-on: https://chromium-review.googlesource.com/1005675 Commit-Queue: Robert Sesek <rsesek@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#550026}
Showing
This diff is collapsed.
Please register or sign in to comment