DescriptionOmnibox: append old matches, don't attempt to insert them
Make AddMatch() append old matches rather than attempt to insert them
in order. We call SortAndCull() after AddMatch() in the only code
path that uses AddMatch(), so the order doesn't matter.
Then eliminate AddMatch() because the revised version is short,
instead inlining the few things it still does in its only caller.
In some quick interactive testing, I didn't notice any problems.
The autocomplete_result tests still pass also. (That said, I don't
think we test CopyOldMatches that extensively in it.)
BUG=380357
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276714
Patch Set 1 #
Total comments: 2
Patch Set 2 : remove DCHECKs #Patch Set 3 : 366181 #Messages
Total messages: 11 (0 generated)
|