[Android] Fix overzealous autocomplete removal in the omnibox.
To work around crbug.com/273763, we were previously removing all text after the selection end if the selection range was entirely before the autocomplete text. On certain keyboards, this could result in deleting new user text that differs from the previously autcompleted text. Now, we only clear the text if it matches the autocompleted text. I verified that this fix did not regress the HTC issue (tested on 4.2.2 w/ the Sense keyboard), and it also address the Japanese IME issue mentioned in the new bug. BUG=569144 Review-Url: https://codereview.chromium.org/2617493003 Cr-Commit-Position: refs/heads/master@{#441495}
Showing
Please register or sign in to comment