DescriptionOmnibox - Search Provider - Cleanup Keyword Mode's Legal Matches
SearchProvider enforces that if the user is in keyword mode, the
only suggestions allowed to be the default match are keyword mode
suggestions, lest they break the user out of keyword mode.
Previously, this constraint was applied with an after-the-fact
correction to allowed_to_be_default_match. This change sets
allowed_to_be_default_match correctly when the AutocompleteMatches
are created.
All tests pass. (And yes, this constraint enforcement is tested.
Here you can see the tests that were added when the constraint was put
in place: https://codereview.chromium.org/67693004 .)
BUG=398135
R=msw@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289981
Patch Set 1 #
Total comments: 19
Patch Set 2 : Mike's comments #
Total comments: 4
Patch Set 3 : requested comment cleanup #
Messages
Total messages: 7 (0 generated)
|