Chromium Code Reviews
Description[TTS] Robustness for VR: show with null selection.
There's a crash on VR that seems to be due to a lack of robustness
in the way Contextual Search builds a query with TemplateUrl.
This might also happen when tapping around a lot (speculation) so
improving robustness is worthwhile.
Adds a check to ContextualSearchManager.showContextualSearch that
the selection is valid before calling TemplateUrl.
Adds a test for this case that will expose this crash (without the
robustness change). Also updates the test infrastructure for
Contextual Search to not mock out TemplateUrl since that does not
seem to be needed anymore.
BUG=728644
Review-Url: https://codereview.chromium.org/2928053002
Cr-Commit-Position: refs/heads/master@{#478446}
Committed: https://chromium.googlesource.com/chromium/src/+/06187f572930bf54ae294079baf9c8dad8a33926
Patch Set 1 #
Total comments: 2
Patch Set 2 : Check that we have a selection in the long-press case too. Cleanup and better document the test. #
Messages
Total messages: 18 (11 generated)
|
||||||||||||||||||||||||||||