DescriptionDon't autocomplete searches of >1 word if they've only been visited once and the user has not yet typed more than one word.
Subtleties:
* To avoid "crowding out" issues where penalized multiword searches prevent us finding better earlier searches, this gets kMaxMatches * 5 history matches per search provider before trimming to the final list.
* To avoid penalized searches preventing completion of prior searches, or sudden changes of autocompletion when going from one to two words typed, this changes the relevance uniquifying algorithm to first do a stable_sort(). One consequence of this is that we'll now be willing to modify the order of results from history, so e.g. we'll now complete "go" -> "goog" even with a newer history result "google.com" (penalized, looks like URL).
This change also adds AutocompleteResult::kLowestDefaultScore since a lot of files want to do something different for "possibly default" matches versus "guaranteed not to be default". It also refactors search_provider_unittest.cc so I can add a lot of tests without so much boilerplate code.
BUG=79487
TEST=Search for "ghi jkl". Now type that again and notice that it doesn't autocomplete until after "j".
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92778
Patch Set 1 #
Total comments: 2
Patch Set 2 : '' #
Total comments: 1
Messages
Total messages: 7 (0 generated)
|