[omnibox] [bookmark-paths] Clean bookmark matches lookup by term.
Currently, TitledUrlIndex::GetResultsMatchingTerm has 2 responsibilities: - Searches the index for nodes matching a term param. - Updates the aggregate results for all terms. This CL splits these responsibilities; leaving the former in GetResultsMatchingTerm while moving the latter to GetResultsMatchingTerms. Additionally, this CL creates a helper method TitledUrlIndex::ExtractIndexTerms extracting some of the logic duplicated in Add and Remove. This is a refactor with no behavior change. Bug: 1129524 Change-Id: Icc8325fd359c2fb856d22980e0e3dd80f0e84097 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2476723 Commit-Queue: manuk hovanesian <manukh@chromium.org> Reviewed-by:Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#822343}
Showing
Please register or sign in to comment