Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[omnibox][grouping] Adds zps groups for Desktop
Adds an AdjustLimitsFromMatches() to `Section` that can be overridden by subclasses to adjust the limits prior to allocating matches to groups. Given that matches are seen in descending order of relevance, its default implementation for ZPS `Section`s ensures that matches with higher relevance scores do not fill up the `Section` if others with lower scores should be placed earlier based on their `Group`s position. Also adjusts Android zps groups to what's currently launched. Bug: 1343512 Change-Id: Ib62ce3971ce145aa6a74529724cd0f3feae615ef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4128228 Reviewed-by: manuk hovanesian <manukh@chromium.org> Reviewed-by: Tomasz Wiszkowski <ender@google.com> Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Cr-Commit-Position: refs/heads/main@{#1096969}
- Loading branch information
Moe Ahmadi
authored and
Chromium LUCI CQ
committed
Jan 25, 2023
1 parent
9daf51d
commit a178ab4
Showing
6 changed files
with
233 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.