commit | c38ba384446d058bbf9c541902d2e1563b093f07 | [log] [tgz] |
---|---|---|
author | Chuong Ho <hdchuong@google.com> | Tue May 23 09:49:40 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 23 09:49:40 2023 |
tree | f29210e52ed74a01ace57efe05b6522fee0dac07 | |
parent | 9c2f88c544d0ef3cc45dbfc94ba2e16cff9b3f88 [diff] |
multiword: remove invalid utf-8 bytes of the preceding text Currently we are using TrimText to get the most recent 100 "characters" (more correctly it is 100 bytes). This will often cause invalid utf-8 characters, for example, if the cutoff is at the middle of an emoji. This causes suggestion problem for Multi-word prediction. This CL ensures that the invalid utf-8 chars are removed at the cutoff position. Change-Id: I12eb93619bd82a1250c742573ce3653a93a79012 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4546450 Commit-Queue: Chuong Ho <hdchuong@google.com> Reviewed-by: Mehrab N <mehrab@chromium.org> Reviewed-by: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/main@{#1147744}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.