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

Issue 10911188: autocomplete: Add AutocompleteMatch::MergeClassifications() (Closed)

Created:
8 years, 3 months ago by Daniel Erat
Modified:
8 years, 3 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

autocomplete: Add AutocompleteMatch::MergeClassifications() This just moves a classifications-merging loop from ShortcutsProvider::ClassifyAllMatchesInString() into a utility method. BUG=141877 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155919

Patch Set 1 #

Total comments: 6

Patch Set 2 : merge #

Patch Set 3 : apply review feedback #

Patch Set 4 : if one of the vectors is non-empty, return it #

Total comments: 10

Patch Set 5 : apply more feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -20 lines) Patch
M chrome/browser/autocomplete/autocomplete_match.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.cc View 1 2 3 4 2 chunks +41 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match_unittest.cc View 1 2 3 4 1 chunk +70 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.cc View 1 2 3 4 1 chunk +1 line, -19 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider_unittest.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Daniel Erat
8 years, 3 months ago (2012-09-10 18:41:17 UTC) #1
Peter Kasting
https://chromiumcodereview.appspot.com/10911188/diff/1/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): https://chromiumcodereview.appspot.com/10911188/diff/1/chrome/browser/autocomplete/autocomplete_match.cc#newcode237 chrome/browser/autocomplete/autocomplete_match.cc:237: AutocompleteMatch::MergeClassifications( Nit: Style guide is vague here; I usually ...
8 years, 3 months ago (2012-09-10 18:56:11 UTC) #2
Daniel Erat
https://chromiumcodereview.appspot.com/10911188/diff/1/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): https://chromiumcodereview.appspot.com/10911188/diff/1/chrome/browser/autocomplete/autocomplete_match.cc#newcode237 chrome/browser/autocomplete/autocomplete_match.cc:237: AutocompleteMatch::MergeClassifications( On 2012/09/10 18:56:11, Peter Kasting wrote: > Nit: ...
8 years, 3 months ago (2012-09-10 19:36:17 UTC) #3
Peter Kasting
Garghragh. If the string is empty, the corresponding classification vector should be empty too. It's ...
8 years, 3 months ago (2012-09-10 19:46:42 UTC) #4
Daniel Erat
On 2012/09/10 19:46:42, Peter Kasting wrote: > Garghragh. > > If the string is empty, ...
8 years, 3 months ago (2012-09-10 19:56:34 UTC) #5
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/10911188/diff/4002/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): https://chromiumcodereview.appspot.com/10911188/diff/4002/chrome/browser/autocomplete/autocomplete_match.cc#newcode248 chrome/browser/autocomplete/autocomplete_match.cc:248: const ACMatchClassifications& classifications1, Nit: I would only indent ...
8 years, 3 months ago (2012-09-10 23:34:35 UTC) #6
Daniel Erat
Thanks! https://chromiumcodereview.appspot.com/10911188/diff/4002/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): https://chromiumcodereview.appspot.com/10911188/diff/4002/chrome/browser/autocomplete/autocomplete_match.cc#newcode248 chrome/browser/autocomplete/autocomplete_match.cc:248: const ACMatchClassifications& classifications1, On 2012/09/10 23:34:35, Peter Kasting ...
8 years, 3 months ago (2012-09-10 23:46:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/10911188/5004
8 years, 3 months ago (2012-09-10 23:47:45 UTC) #8
commit-bot: I haz the power
8 years, 3 months ago (2012-09-11 02:48:42 UTC) #9
Change committed as 155919

Powered by Google App Engine
This is Rietveld 408576698