DescriptionInstantExtended(gtk): Hide top match if told to so.
CL 17114003 and 22410004 added a way for Mac and views to hide the top
omnibox match when it is a verbatim match we do not want to show. This
implements that for GTK too so it'll work on all desktop platforms.
BUG=252823
TEST=Manually. Run with no flags and verify that when you type 'faceb'
in the omnibox, the popup shows a search suggestion for 'faceb'. Run
again with the flags
--enable-instant-extended-api
--force-fieldtrials='InstantExtended/Group1 hide_verbatim:1/'
and verify that you do not see this suggestion. Also check that with the
flags set, hovering on the top suggestion works and that there are no
off-by-one problems when clicking on suggestions.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222186
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rebase. #Patch Set 3 : Address comment. #Patch Set 4 : Add unit tests. #
Total comments: 4
Patch Set 5 : Reorder member functions. #
Total comments: 1
Patch Set 6 : Rebase. #
Total comments: 2
Patch Set 7 : Rebase and add check. #Patch Set 8 : Skip DCHECK in test. #
Total comments: 1
Messages
Total messages: 29 (0 generated)
|