Fix LauncherSearchProvider DCHECK.
The LSP can DCHECK when calculating query/title score matches, because the query or title text can be empty. This is partly because the LSP runs even on zero-state searches, and (perhaps) partly because files can have no title. This CL adds various checks to prevent calculating scores when we don't have both a query and title. It also stops the LSP from running at all on zero-state searches. Bug: 1131358 Change-Id: I65c264def66e83f1c7fd47956eb0a9ddf59e099e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2426088Reviewed-by:Thanh Nguyen <thanhdng@chromium.org> Commit-Queue: Tony Yeoman <tby@chromium.org> Cr-Commit-Position: refs/heads/master@{#811057}
Showing
Please register or sign in to comment