• Tommy Li's avatar
    [omnibox] Implementation of preserve default match during async pass · e910f6e9
    Tommy Li authored
    This CL contains the implementation a for the flag to preserve the
    default match during the async pass.
    
    It's a minimally-interventionist approach (the smallest possible
    hammer) that simply promotes the previous default match to the top, if
    it can be found in the new result set from the async pass.
    
    It won't inject in the old default match if it's truly no longer
    present after the async pass, because I think there will be unwanted
    side effects from that.
    
    It also adds a test.
    
    Bug: 398135
    Change-Id: I9be0f18820436d3d29b8ba7a80835d456d771cc8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1788313Reviewed-by: default avatarKevin Bailey <krb@chromium.org>
    Commit-Queue: Tommy Li <tommycli@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#695324}
    e910f6e9
autocomplete_result.cc 34.7 KB