commit | 16dc8abf50286bc3d04f1e272ddea0faa8434602 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Thu Oct 04 09:37:51 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Oct 04 09:37:51 2018 |
tree | 8a2e7ad5519d0f63874ac78789bf4e138a0bda0b | |
parent | 4ac1c7720ebea450c3c71c53789c138993622614 [diff] |
Avoid UTF-8->UTF-16 conversion in HashAndUTF8CharactersTranslator The Translate() function can use the same check as Equal() to determine if the string is ASCII-only. Saving a conversion from UTF-8 to UTF-16. Bug: 889183 Change-Id: Ieffab05f34a1e4a2ef725e298e7f15e7ff14a3f8 Reviewed-on: https://chromium-review.googlesource.com/c/1257928 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by: Yuta Kitamura <yutak@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#596556}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .