[Mac] Move selection validation to a Touch Bar-specific place.
Effectively changes three things from r612882: 1. Reverts the checks in OnTextSelectionChanged(). This drops DumpWithoutCrashing(), which was louder than intended, and avoids potentially changing non-Touch Bar behavior. 2. Preserves the new behavior of ignoring an invalid selection instead of clearing the existing suggestions by removing the selection-clearing code. 3. Adds a bounds check that was removed in (1) into Touch Bar code. Bug: 893038, 910950 Change-Id: I6fdb30a71ce64680fb06ce73072c9171da36da32 Reviewed-on: https://chromium-review.googlesource.com/c/1358695Reviewed-by:Elly Fong-Jones <ellyjones@chromium.org> Commit-Queue: Sidney San Martín <sdy@chromium.org> Cr-Commit-Position: refs/heads/master@{#613105}
Showing
Please register or sign in to comment