rule-based: Fix escaping issue in rulebased input.
We used to have a JSON-based rulebased API, where we needed to escape certain characters in the protocol. We then added an API based purely on Mojo types. However, the code for the JSON one was copied for the Mojo one, so we also escaped certain characters. This means that we actually insert escaped characters rather than the characters themselves. For example, typing "\" gives "\\". We delete the escaping code and add tests to prevent this in the future. Bug: 1014384 Change-Id: I8865869aa020b94c961c71826fa72d6cf2c96b67 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1859809Reviewed-by:Keith Lee <keithlee@chromium.org> Reviewed-by:
Leo Zhang <googleo@chromium.org> Commit-Queue: Leo Zhang <googleo@chromium.org> Auto-Submit: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#706777}
Showing
Please register or sign in to comment