• Kevin Bailey's avatar
    [omnibox] Remove calls to EnsureUWYTIsAllowedToBeDefault · d566a9fa
    Kevin Bailey authored
    The suggestion providers HistoryQuick, Search and Shortcuts call
    AutocompleteMatch::EnsureUWYTIsAllowedToBeDefault() to promote
    suggestions to have |allowed_to_be_default_match| set if the
    stripped URL matches the input. This was done to promote some
    higher scoring suggestions to become the default match. This is
    now done during sort-and-dedup by having an |allowed| suggestion
    inherit the best score that it matches. This CL removes the
    calls and therefore doesn't set |allowed| in these matches.
    
    Bug: 879796
    Change-Id: I9529e3bea015e6e04f44ed5b401344d73556665b
    Reviewed-on: https://chromium-review.googlesource.com/1213281
    Commit-Queue: Kevin Bailey <krb@chromium.org>
    Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#589935}
    d566a9fa
shortcuts_provider.cc 20.9 KB