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

Issue 171323002: Part 6 of search provider refactoring. (Closed)

Created:
6 years, 10 months ago by Maria
Modified:
6 years, 10 months ago
Reviewers:
H Fung, msw
CC:
chromium-reviews, James Su, Mark P
Visibility:
Public.

Description

Part 6 of search provider refactoring. Makes changes to how the state is recorded in zero_suggest_provider to facilitate moving out ParseSuggestResults into super class. Replaces navigation_results_, query_matches_map_, and verbatim_relevance_ objects with a Results results_ instance. The latter keeps track of navigation_results_ and query_results_ and constructs the query matches map on when it's needed. verbatim_relevance_ in the old code is only used to see the current url match (based on the server relevance returned in the previous request or a static value). The new code keeps track of the server verbatim relevance in results_ and uses an accessor to get either server results or a constant value if no server results are available, matching the old semantics. Merged FillResults with ParseSuggestResults function and moved match map creation code into ConvertResultsToAutocompleteMatches where it's used. BUG=338955 TBR=mpearson Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252206

Patch Set 1 #

Patch Set 2 : Fixes up comments #

Total comments: 1

Patch Set 3 : Made GetVerbatimRelevance const #

Total comments: 7

Patch Set 4 : Update comment on ClearAllResults #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -120 lines) Patch
M chrome/browser/autocomplete/zero_suggest_provider.h View 1 2 4 chunks +8 lines, -21 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 1 2 3 7 chunks +98 lines, -99 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Maria
6 years, 10 months ago (2014-02-18 21:46:56 UTC) #1
msw
lgtm with a nit https://codereview.chromium.org/171323002/diff/20001/chrome/browser/autocomplete/zero_suggest_provider.h File chrome/browser/autocomplete/zero_suggest_provider.h (right): https://codereview.chromium.org/171323002/diff/20001/chrome/browser/autocomplete/zero_suggest_provider.h#newcode114 chrome/browser/autocomplete/zero_suggest_provider.h:114: int GetVerbatimRelevance(); nit: const
6 years, 10 months ago (2014-02-19 01:11:06 UTC) #2
H Fung
https://codereview.chromium.org/171323002/diff/70001/chrome/browser/autocomplete/zero_suggest_provider.cc File chrome/browser/autocomplete/zero_suggest_provider.cc (right): https://codereview.chromium.org/171323002/diff/70001/chrome/browser/autocomplete/zero_suggest_provider.cc#newcode192 chrome/browser/autocomplete/zero_suggest_provider.cc:192: // value on the next query to set the ...
6 years, 10 months ago (2014-02-19 06:33:30 UTC) #3
Maria
https://codereview.chromium.org/171323002/diff/70001/chrome/browser/autocomplete/zero_suggest_provider.cc File chrome/browser/autocomplete/zero_suggest_provider.cc (right): https://codereview.chromium.org/171323002/diff/70001/chrome/browser/autocomplete/zero_suggest_provider.cc#newcode192 chrome/browser/autocomplete/zero_suggest_provider.cc:192: // value on the next query to set the ...
6 years, 10 months ago (2014-02-19 18:25:53 UTC) #4
H Fung
lgtm https://codereview.chromium.org/171323002/diff/70001/chrome/browser/autocomplete/zero_suggest_provider.cc File chrome/browser/autocomplete/zero_suggest_provider.cc (right): https://codereview.chromium.org/171323002/diff/70001/chrome/browser/autocomplete/zero_suggest_provider.cc#newcode192 chrome/browser/autocomplete/zero_suggest_provider.cc:192: // value on the next query to set ...
6 years, 10 months ago (2014-02-19 21:03:16 UTC) #5
Maria
The CQ bit was checked by mariakhomenko@chromium.org
6 years, 10 months ago (2014-02-19 21:51:44 UTC) #6
Maria
I filed https://code.google.com/p/chromium/issues/detail?id=345002 to track the verbatim_relevance issue.
6 years, 10 months ago (2014-02-19 21:59:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mariakhomenko@chromium.org/171323002/100001
6 years, 10 months ago (2014-02-19 22:15:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mariakhomenko@chromium.org/171323002/100001
6 years, 10 months ago (2014-02-20 00:49:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mariakhomenko@chromium.org/171323002/100001
6 years, 10 months ago (2014-02-20 03:39:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mariakhomenko@chromium.org/171323002/100001
6 years, 10 months ago (2014-02-20 08:46:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mariakhomenko@chromium.org/171323002/100001
6 years, 10 months ago (2014-02-20 12:19:49 UTC) #12
commit-bot: I haz the power
6 years, 10 months ago (2014-02-20 13:09:09 UTC) #13
Message was sent while issue was closed.
Change committed as 252206

Powered by Google App Engine
This is Rietveld 408576698