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

Issue 603683004: [AiS] Remove answer contents from all matches other than the first. (Closed)

Created:
6 years, 3 months ago by Justin Donnelly
Modified:
6 years, 2 months ago
Reviewers:
Mark P
CC:
chromium-reviews, groby-ooo-7-16
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[AiS] Remove answer contents from all matches other than the first. It's possible to get a copy of an answer from previous matches and get the same answer attached to a similar server-provided answer. In the future, we may decide that we want to have different answers attached to multiple suggestions, but the current assumption is that there should only ever be one suggestion with an answer. BUG= Committed: https://crrev.com/55f6614194514aad00a134312b3595a57b85f7ee Cr-Commit-Position: refs/heads/master@{#296818}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Respond to comments #

Total comments: 4

Patch Set 3 : Add unit test, respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -1 line) Patch
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M components/omnibox/search_provider.h View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M components/omnibox/search_provider.cc View 1 2 3 chunks +24 lines, -1 line 0 comments Download

Messages

Total messages: 16 (7 generated)
Justin Donnelly
Hi Mark - here's the change I mentioned in the meeting this afternoon.
6 years, 3 months ago (2014-09-24 22:09:50 UTC) #4
groby-ooo-7-16
Drive-by comments. https://codereview.chromium.org/603683004/diff/40001/components/omnibox/search_provider.cc File components/omnibox/search_provider.cc (right): https://codereview.chromium.org/603683004/diff/40001/components/omnibox/search_provider.cc#newcode927 components/omnibox/search_provider.cc:927: it->answer_contents = base::string16(); nit: answer_contents.clear()/answer_type.clear() might be ...
6 years, 3 months ago (2014-09-24 22:26:38 UTC) #5
Justin Donnelly
https://codereview.chromium.org/603683004/diff/40001/components/omnibox/search_provider.cc File components/omnibox/search_provider.cc (right): https://codereview.chromium.org/603683004/diff/40001/components/omnibox/search_provider.cc#newcode927 components/omnibox/search_provider.cc:927: it->answer_contents = base::string16(); On 2014/09/24 22:26:38, groby wrote: > ...
6 years, 3 months ago (2014-09-25 01:05:13 UTC) #7
Mark P
Is it hard to add a unit test? --mark https://codereview.chromium.org/603683004/diff/100001/components/omnibox/search_provider.cc File components/omnibox/search_provider.cc (right): https://codereview.chromium.org/603683004/diff/100001/components/omnibox/search_provider.cc#newcode885 components/omnibox/search_provider.cc:885: ...
6 years, 2 months ago (2014-09-25 16:23:47 UTC) #9
Justin Donnelly
On 2014/09/25 16:23:47, Mark P wrote: > Is it hard to add a unit test? ...
6 years, 2 months ago (2014-09-25 19:53:40 UTC) #11
Mark P
lgtm
6 years, 2 months ago (2014-09-25 19:56:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/603683004/140001
6 years, 2 months ago (2014-09-25 22:14:53 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:140001) as beb87869886725940d0b379d39c8b9a3b438bce9
6 years, 2 months ago (2014-09-25 23:08:33 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 23:09:10 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/55f6614194514aad00a134312b3595a57b85f7ee
Cr-Commit-Position: refs/heads/master@{#296818}

Powered by Google App Engine
This is Rietveld 408576698