[Mac] Fix Text Suggestions Touch Bar Out of Range Issue
It's possible for the TextSuggestionsTouchBarController to receive a selection range that is out of the text bounds. This CL fixes the issue by replacing the range with an empty one if it is out of bounds. This CL also makes sure that gfx::Range::ToNSRange() gets used, since gfx::Range() can potentially be reversed. Bug: 880642, 872929 Change-Id: I4acc63b80cdf107de2ba340bb277e3e38084ff52 Reviewed-on: https://chromium-review.googlesource.com/1207575 Commit-Queue: Sarah Chan <spqchan@chromium.org> Reviewed-by:Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#589247}
Showing
Please register or sign in to comment