-
Maciej Pawlowski authored
Sometimes cursorPosition computed based on mUrlBarEditingTextProvider would be larger than the size of textWithoutAutocomplete given to onTextChanged(). This happened when typing really fast on a slow device, in Debug builds. To ensure this situation doesn't trip a DCHECK within AutocompleteControllerAndroid, use the up-to-date value of mUrlBarEditingTextProvider's text when passing a computed cursor position. Bug: 1142817 Change-Id: Id6ef48d561461fd711cbc9a4abab8851b8406a2a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2503693Reviewed-by:
Ted Choc <tedchoc@chromium.org> Reviewed-by:
Tomasz Wiszkowski <ender@google.com> Commit-Queue: Ted Choc <tedchoc@chromium.org> Auto-Submit: Maciej Pawlowski <m.pawlowski@eyeo.com> Cr-Commit-Position: refs/heads/master@{#831920}
7c2b5f35