[Suggested files] Do more thorough deduplication of results
Currently we dedup results in two cases: 1. the results point to the same URL 2. one result is a direct child of another result, eg. the "known wi-fi networks" setting and the "wi-fi networks" subpage. This CL replaces case 2 with a more comprehensive version. Setting, subpage, and section results loosely form a tree, and we never want to display two results that have an ancestor/descendant relationship. We should always pick the most general (ie. highest up the tree) result. This fixes bugs including a search for "wifi" showing both "Wi-fi networks" and "Forget Wi-fi networks", because the forget setting's subpage is nested within a subpage within Wi-fi networks. Bug: 1097166 Change-Id: Ibc6b5d54a15a405a2a9e435bbfa362ccf74cf471 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2265711 Commit-Queue: Tony Yeoman <tby@chromium.org> Reviewed-by:Jia Meng <jiameng@chromium.org> Cr-Commit-Position: refs/heads/master@{#782769}
Showing
Please register or sign in to comment