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

Issue 2091473003: Factor parsing "ln=" to SuggestionAnswer (Closed)

Created:
4 years, 6 months ago by Kevin Bailey
Modified:
4 years, 5 months ago
CC:
chromium-reviews, tfarina, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Factor parsing "ln=" to SuggestionAnswer Multiple parts of the code need to access the "ln=" field, if any, in the second line text fields of a SuggestionAnswer. Move the parse and access method to a central place, and fix up the callers. BUG= Committed: https://crrev.com/e959e110424ef144189fa2046e046f6a5003d5ee Cr-Commit-Position: refs/heads/master@{#403169}

Patch Set 1 #

Total comments: 12

Patch Set 2 : SuggestionAnswer::SecondLineSize -> ImageLine::TextNumLines #

Total comments: 2

Patch Set 3 : TextNumLines -> num_text_lines #

Total comments: 2

Patch Set 4 : Reorder lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -21 lines) Patch
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm View 1 2 2 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_result_view.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M components/omnibox/browser/suggestion_answer.h View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M components/omnibox/browser/suggestion_answer.cc View 1 2 5 chunks +11 lines, -5 lines 0 comments Download
M components/omnibox/browser/suggestion_answer_unittest.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
Kevin Bailey
Hi Peter, It was suggested by a couple people that we consolidate the methods from ...
4 years, 6 months ago (2016-06-23 14:17:52 UTC) #3
groby-ooo-7-16
Thanks for tackling the cleanup. I'm slightly confused on where ln actually shows up - ...
4 years, 6 months ago (2016-06-23 20:49:28 UTC) #4
Kevin Bailey
Some quick replies. "ln" is supposed to be in the first text field of the ...
4 years, 6 months ago (2016-06-23 21:49:23 UTC) #5
Kevin Bailey
https://codereview.chromium.org/2091473003/diff/1/components/omnibox/browser/suggestion_answer.cc File components/omnibox/browser/suggestion_answer.cc (right): https://codereview.chromium.org/2091473003/diff/1/components/omnibox/browser/suggestion_answer.cc#newcode186 components/omnibox/browser/suggestion_answer.cc:186: second_line_size_(answer.second_line_size_) {} On 2016/06/23 21:49:22, Kevin Bailey wrote: > ...
4 years, 5 months ago (2016-06-28 15:59:32 UTC) #6
groby-ooo-7-16
LGTM % nit https://codereview.chromium.org/2091473003/diff/1/components/omnibox/browser/suggestion_answer.h File components/omnibox/browser/suggestion_answer.h (right): https://codereview.chromium.org/2091473003/diff/1/components/omnibox/browser/suggestion_answer.h#newcode78 components/omnibox/browser/suggestion_answer.h:78: bool has_num_lines() const { return has_num_lines_; ...
4 years, 5 months ago (2016-06-28 17:20:04 UTC) #7
Kevin Bailey
https://codereview.chromium.org/2091473003/diff/1/components/omnibox/browser/suggestion_answer.h File components/omnibox/browser/suggestion_answer.h (right): https://codereview.chromium.org/2091473003/diff/1/components/omnibox/browser/suggestion_answer.h#newcode78 components/omnibox/browser/suggestion_answer.h:78: bool has_num_lines() const { return has_num_lines_; } On 2016/06/28 ...
4 years, 5 months ago (2016-06-28 18:46:24 UTC) #8
Peter Kasting
LGTM https://codereview.chromium.org/2091473003/diff/40001/components/omnibox/browser/suggestion_answer.h File components/omnibox/browser/suggestion_answer.h (right): https://codereview.chromium.org/2091473003/diff/40001/components/omnibox/browser/suggestion_answer.h#newcode111 components/omnibox/browser/suggestion_answer.h:111: int num_text_lines() const { return num_text_lines_; } Nit: ...
4 years, 5 months ago (2016-06-29 23:08:57 UTC) #9
Kevin Bailey
https://codereview.chromium.org/2091473003/diff/40001/components/omnibox/browser/suggestion_answer.h File components/omnibox/browser/suggestion_answer.h (right): https://codereview.chromium.org/2091473003/diff/40001/components/omnibox/browser/suggestion_answer.h#newcode111 components/omnibox/browser/suggestion_answer.h:111: int num_text_lines() const { return num_text_lines_; } On 2016/06/29 ...
4 years, 5 months ago (2016-06-30 13:19:29 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2091473003/60001
4 years, 5 months ago (2016-06-30 13:20:03 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-30 14:02:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2091473003/60001
4 years, 5 months ago (2016-06-30 14:12:10 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-30 14:16:14 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 14:17:36 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e959e110424ef144189fa2046e046f6a5003d5ee
Cr-Commit-Position: refs/heads/master@{#403169}

Powered by Google App Engine
This is Rietveld 408576698