Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(747)

Issue 23164011: Omnibox: Reduce Bolding Flicker in SearchProvider (Closed)

Created:
7 years, 4 months ago by Mark P
Modified:
6 years, 11 months ago
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

Omnibox: Reduce Bolding Flicker in SearchProvider Do this by computing bolding at the time results are fetched from the suggest server and keeping that same bolding regardless of what keys the user presses later. At the moment, this change only affects query suggestions, not navsuggestions. BUG=259486 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243998

Patch Set 1 #

Total comments: 8

Patch Set 2 : even fancier solution #

Patch Set 3 : even fancier solution #

Total comments: 6

Patch Set 4 : cleaned up zero suggest #

Total comments: 14

Patch Set 5 : rebase now that many cleanup changelist have been submitted #

Patch Set 6 : polish edit case #

Total comments: 26

Patch Set 7 : Mike's comments #

Total comments: 10

Patch Set 8 : Anuj and Mike's comments #

Patch Set 9 : fix test to compile #

Total comments: 6

Patch Set 10 : rename function #

Patch Set 11 : fix test to set match_contents #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -63 lines) Patch
M chrome/browser/autocomplete/search_provider.h View 1 2 3 4 5 6 7 8 9 4 chunks +19 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 5 6 7 8 9 11 chunks +78 lines, -56 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
Mark P
Hi Mike, the lord of all refactoring in SearchProvider, I took a stab at fixing ...
7 years, 4 months ago (2013-08-15 18:29:26 UTC) #1
Mark P
Some comments to explain what I did in this patchset. --mark https://codereview.chromium.org/23164011/diff/1/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): ...
7 years, 4 months ago (2013-08-15 18:34:22 UTC) #2
msw
I think I'm okay with the overall approach, but I guess this means we'll no ...
7 years, 4 months ago (2013-08-15 18:51:02 UTC) #3
Mark P
> I think I'm okay with the overall approach, but I guess this means we'll ...
7 years, 4 months ago (2013-08-15 19:28:15 UTC) #4
Peter Kasting
On Thu, Aug 15, 2013 at 12:28 PM, <mpearson@chromium.org> wrote: > I think I'm okay ...
7 years, 4 months ago (2013-08-15 19:36:18 UTC) #5
msw
On 2013/08/15 19:28:15, Mark P (likely away 8.26-9.15) wrote: > > I think this is ...
7 years, 4 months ago (2013-08-15 19:48:30 UTC) #6
Peter Kasting
On Thu, Aug 15, 2013 at 12:48 PM, <msw@chromium.org> wrote: > I have a spitball ...
7 years, 4 months ago (2013-08-15 19:52:17 UTC) #7
Mark P
On Thu, Aug 15, 2013 at 12:48 PM, <msw@chromium.org> wrote: > On 2013/08/15 19:28:15, Mark ...
7 years, 4 months ago (2013-08-16 00:04:44 UTC) #8
Mark P
Sorry I forgot to ask the implicit ending: what do you think? On Thu, Aug ...
7 years, 4 months ago (2013-08-16 00:05:18 UTC) #9
msw
On 2013/08/16 00:05:18, Mark P (likely away 8.26-9.15) wrote: > > Your proposal sounds nice. ...
7 years, 4 months ago (2013-08-16 00:33:23 UTC) #10
Peter Kasting
On Thu, Aug 15, 2013 at 5:33 PM, <msw@chromium.org> wrote: > One think I didn't ...
7 years, 4 months ago (2013-08-16 00:35:40 UTC) #11
Mark P
I have a new version that works almost as we discussed. It recalculate bolding on ...
7 years, 4 months ago (2013-08-16 23:25:58 UTC) #12
Mark P
Consider this a friendly reminder about this review. (I'm not in a hurry to submit ...
7 years, 4 months ago (2013-08-22 14:16:14 UTC) #13
Peter Kasting
(1) I was waiting on msw's review to give an OWNERS review, did you want ...
7 years, 4 months ago (2013-08-22 18:17:44 UTC) #14
Mark P
On Thu, Aug 22, 2013 at 11:17 AM, <pkasting@chromium.org> wrote: > (1) I was waiting ...
7 years, 4 months ago (2013-08-22 18:22:38 UTC) #15
Mark P
I cleaned up the zero suggest code. The unit tests still don't compile, but I ...
7 years, 4 months ago (2013-08-22 18:47:12 UTC) #16
msw
I like some of the refactoring here that seems tangential to the actual change but ...
7 years, 3 months ago (2013-08-26 22:57:15 UTC) #17
Peter Kasting
Hey Mark, did this slip off your radar?
7 years, 1 month ago (2013-11-13 08:06:53 UTC) #18
Mark P
On 2013/11/13 08:06:53, Peter Kasting wrote: > Hey Mark, did this slip off your radar? ...
7 years, 1 month ago (2013-11-13 17:14:37 UTC) #19
Peter Kasting
On 2013/11/13 17:14:37, Mark P wrote: > On 2013/11/13 08:06:53, Peter Kasting wrote: > > ...
7 years, 1 month ago (2013-11-13 20:09:21 UTC) #20
Mark P
Peter & Mike, I revived this changelist after rebasing on top of some cleanup changes ...
6 years, 11 months ago (2014-01-04 00:26:16 UTC) #21
Peter Kasting
I tried to look at this, and for some reason my brain is just fried ...
6 years, 11 months ago (2014-01-04 00:48:41 UTC) #22
Mark P
On Fri, Jan 3, 2014 at 4:48 PM, <pkasting@chromium.org> wrote: > I tried to look ...
6 years, 11 months ago (2014-01-04 04:19:14 UTC) #23
msw
https://codereview.chromium.org/23164011/diff/94001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/23164011/diff/94001/chrome/browser/autocomplete/search_provider.cc#newcode239 chrome/browser/autocomplete/search_provider.cc:239: if (!allow_bolding_all && (input_text != match_contents_) && nit: remove ...
6 years, 11 months ago (2014-01-06 21:09:00 UTC) #24
Mark P
https://codereview.chromium.org/23164011/diff/94001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/23164011/diff/94001/chrome/browser/autocomplete/search_provider.cc#newcode239 chrome/browser/autocomplete/search_provider.cc:239: if (!allow_bolding_all && (input_text != match_contents_) && On 2014/01/06 ...
6 years, 11 months ago (2014-01-06 22:20:15 UTC) #25
Mark P
Hi Anuj, I added you as a reviewer to this changelist because I don't really ...
6 years, 11 months ago (2014-01-06 22:24:00 UTC) #26
msw
https://codereview.chromium.org/23164011/diff/94001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/23164011/diff/94001/chrome/browser/autocomplete/search_provider.cc#newcode1229 chrome/browser/autocomplete/search_provider.cc:1229: // Error correction for bad data from server. On ...
6 years, 11 months ago (2014-01-06 22:50:20 UTC) #27
Anuj Sharma
On Mon, Jan 6, 2014 at 2:24 PM, <mpearson@chromium.org> wrote: > > Hi Anuj, > ...
6 years, 11 months ago (2014-01-06 23:22:51 UTC) #28
Anuj
https://codereview.chromium.org/23164011/diff/174001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/23164011/diff/174001/chrome/browser/autocomplete/search_provider.cc#newcode258 chrome/browser/autocomplete/search_provider.cc:258: // "bold" this. Consider modifying the terminology. I think ...
6 years, 11 months ago (2014-01-06 23:23:37 UTC) #29
Mark P
It sounds like we're almost done... --mark https://codereview.chromium.org/23164011/diff/94001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/23164011/diff/94001/chrome/browser/autocomplete/search_provider.cc#newcode1229 chrome/browser/autocomplete/search_provider.cc:1229: // Error ...
6 years, 11 months ago (2014-01-07 19:10:30 UTC) #30
msw
LGTM
6 years, 11 months ago (2014-01-07 19:13:34 UTC) #31
Mark P
FYI, I decided to do the followup change to reduce flicker related to navsuggestions in ...
6 years, 11 months ago (2014-01-07 21:12:56 UTC) #32
Anuj
Couple more thoughts https://codereview.chromium.org/23164011/diff/324001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/23164011/diff/324001/chrome/browser/autocomplete/search_provider.cc#newcode235 chrome/browser/autocomplete/search_provider.cc:235: void SearchProvider::SuggestResult::CalculateContentsClass( I prefer the old ...
6 years, 11 months ago (2014-01-07 23:48:13 UTC) #33
Mark P
https://codereview.chromium.org/23164011/diff/324001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/23164011/diff/324001/chrome/browser/autocomplete/search_provider.cc#newcode235 chrome/browser/autocomplete/search_provider.cc:235: void SearchProvider::SuggestResult::CalculateContentsClass( On 2014/01/07 23:48:14, Anuj wrote: > I ...
6 years, 11 months ago (2014-01-08 14:53:16 UTC) #34
Anuj
lgtm https://codereview.chromium.org/23164011/diff/324001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/23164011/diff/324001/chrome/browser/autocomplete/search_provider.cc#newcode235 chrome/browser/autocomplete/search_provider.cc:235: void SearchProvider::SuggestResult::CalculateContentsClass( > (BTW, I don't know why ...
6 years, 11 months ago (2014-01-08 19:22:54 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/23164011/394001
6 years, 11 months ago (2014-01-08 22:04:53 UTC) #36
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=211616
6 years, 11 months ago (2014-01-08 23:39:27 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/23164011/674001
6 years, 11 months ago (2014-01-09 19:35:07 UTC) #38
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 22:26:36 UTC) #39
Message was sent while issue was closed.
Change committed as 243998

Powered by Google App Engine
This is Rietveld 408576698