-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[omnibox] Clean up
AutocompleteProvider::Type
enum.
Refactor, no behavior change. - Reorders the values consistent with the omnibox event proto. Likewise reorders the switch cases in `AutocompleteProvider::TypeToString()` and `AutocompleteProvider::AsOmniboxEventProviderType()`. - Removes `_PROVIDER` suffix from `TYPE_HISTORY_CLUSTER_PROVIDER` for consistency with the other types. - Adds 'Type::' qualifier to the callsites that didn't already have it. - Removes 'TYPE_' suffix from the keys. - Renames the keys to camel case, e.g. `TYPE_HISTORY_QUICK` -> `kHistoryQuick`. - Makes it a typed enum. The reorder means their integer values are changing. That's ok, the only places that cared for the exact values are `OmniboxFieldTrial::GetProviderMaxMatches()` and `OmniboxFieldTrial::GetDisabledProviderTypes()` - the 1st is used by ML experiments (stable) & the 2nd has no experiments. some files that have low coverage to begin with. Low-Coverage-Reason: TRIVIAL_CHANGE This is a refactor CL that touches Change-Id: Ic5b3cdcfdf809bca507c21bc4ecca1bfc2bc236a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4644709 Auto-Submit: manuk hovanesian <manukh@chromium.org> Commit-Queue: manuk hovanesian <manukh@chromium.org> Reviewed-by: Orin Jaworski <orinj@chromium.org> Cr-Commit-Position: refs/heads/main@{#1215942}
- Loading branch information
manukh
authored and
Chromium LUCI CQ
committed
Oct 27, 2023
1 parent
70b83d9
commit e16eb57
Showing
73 changed files
with
683 additions
and
503 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
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
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
Binary file not shown.
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.