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

Issue 2755503002: Add a new entry to omnibox_event.proto to log specific type of contextual suggestions (Closed)

Created:
3 years, 9 months ago by gcomanici
Modified:
3 years, 8 months ago
Reviewers:
Mark P
CC:
chromium-reviews, jdonnelly+watch_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a new entry to omnibox_event.proto to log specific types for the suggestions provided by omnibox. Moreover, in this CL, we implement the mechanics of populating this new entry with specific types of contextual zero-suggest suggestions. BUG=682420 Review-Url: https://codereview.chromium.org/2755503002 Cr-Commit-Position: refs/heads/master@{#461327} Committed: https://chromium.googlesource.com/chromium/src/+/67d53ace23978af7d28d83fade1a09993079085a

Patch Set 1 #

Patch Set 2 : #

Total comments: 14

Patch Set 3 : Use integer identifiers instead of human-readable types. #

Patch Set 4 : Moved the logging of the specific type in the omnibox_event proto. #

Total comments: 2

Patch Set 5 : specific_type_identifier can be used outside of contextual suggestions. #

Total comments: 19

Patch Set 6 : Add unit test for parsing and use type specifier for search suggestions. #

Total comments: 12

Patch Set 7 : Small fixes. #

Total comments: 16

Patch Set 8 : Rename subtype field and fix test file #

Total comments: 6

Patch Set 9 : Fix consistency between comments and field names. #

Total comments: 9

Patch Set 10 : Small fixes and sync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -87 lines) Patch
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +132 lines, -62 lines 0 comments Download
M components/metrics/proto/omnibox_event.proto View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -1 line 0 comments Download
M components/omnibox/browser/autocomplete_match.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M components/omnibox/browser/autocomplete_match.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -7 lines 0 comments Download
M components/omnibox/browser/base_search_provider.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M components/omnibox/browser/base_search_provider_unittest.cc View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M components/omnibox/browser/omnibox_metrics_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M components/omnibox/browser/search_provider.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -3 lines 0 comments Download
M components/omnibox/browser/search_suggestion_parser.h View 1 2 3 4 5 6 7 8 9 5 chunks +10 lines, -0 lines 0 comments Download
M components/omnibox/browser/search_suggestion_parser.cc View 1 2 3 4 5 6 7 8 10 chunks +21 lines, -3 lines 0 comments Download
M components/omnibox/browser/zero_suggest_provider.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 47 (19 generated)
gcomanici
3 years, 9 months ago (2017-03-14 19:18:31 UTC) #7
Mark P
I only glanced at this to look at the general design and have some questions. ...
3 years, 9 months ago (2017-03-14 20:17:50 UTC) #8
gcomanici
Thank you, Mark! Please let me know if there is an easy way to start ...
3 years, 9 months ago (2017-03-14 20:42:55 UTC) #11
Mark P
https://codereview.chromium.org/2755503002/diff/20001/components/omnibox/browser/autocomplete_match.h File components/omnibox/browser/autocomplete_match.h (right): https://codereview.chromium.org/2755503002/diff/20001/components/omnibox/browser/autocomplete_match.h#newcode374 components/omnibox/browser/autocomplete_match.h:374: std::string specific_type; On 2017/03/14 20:42:55, gcomanici wrote: > On ...
3 years, 9 months ago (2017-03-14 21:04:09 UTC) #12
Mark P
Also, let's wait on talking to chrome-privacy until this design is more established. --mark
3 years, 9 months ago (2017-03-14 21:04:47 UTC) #13
gcomanici
https://codereview.chromium.org/2755503002/diff/20001/components/omnibox/browser/autocomplete_match.h File components/omnibox/browser/autocomplete_match.h (right): https://codereview.chromium.org/2755503002/diff/20001/components/omnibox/browser/autocomplete_match.h#newcode374 components/omnibox/browser/autocomplete_match.h:374: std::string specific_type; On 2017/03/14 21:04:09, Mark P wrote: > ...
3 years, 9 months ago (2017-03-15 01:35:56 UTC) #14
Mark P
Sorry I got caught up with other things today. I'll review this again tomorrow, and ...
3 years, 9 months ago (2017-03-15 23:27:25 UTC) #15
gcomanici
On 2017/03/15 23:27:25, Mark P wrote: > Sorry I got caught up with other things ...
3 years, 9 months ago (2017-03-20 18:46:03 UTC) #16
Mark P
Haven't reviewed yet, but need to publish this comment so it's public. --mark https://codereview.chromium.org/2755503002/diff/60001/components/metrics/proto/omnibox_event.proto File ...
3 years, 9 months ago (2017-03-20 21:51:43 UTC) #17
gcomanici
On 2017/03/20 21:51:43, Mark P wrote: > Haven't reviewed yet, but need to publish this ...
3 years, 9 months ago (2017-03-21 19:23:39 UTC) #18
gcomanici
https://codereview.chromium.org/2755503002/diff/60001/components/metrics/proto/omnibox_event.proto File components/metrics/proto/omnibox_event.proto (right): https://codereview.chromium.org/2755503002/diff/60001/components/metrics/proto/omnibox_event.proto#newcode258 components/metrics/proto/omnibox_event.proto:258: // suggestion provided through zero-suggest. On 2017/03/20 21:51:43, Mark ...
3 years, 9 months ago (2017-03-21 19:23:48 UTC) #19
Mark P
Generally fine. :-) See comments for revisions below. As you saw I checked with chrome ...
3 years, 9 months ago (2017-03-21 19:54:25 UTC) #20
gcomanici
Thanks, Mark! Added a unit test for response parsing and I made the usage of ...
3 years, 9 months ago (2017-03-22 02:39:03 UTC) #22
Mark P
Only one substantial request in these comments. Thanks for your patience. :-) --mark https://codereview.chromium.org/2755503002/diff/120001/chrome/browser/autocomplete/search_provider_unittest.cc File ...
3 years, 9 months ago (2017-03-23 22:49:54 UTC) #23
Mark P
(I definitely want to get these details right because, with client code that will keep ...
3 years, 9 months ago (2017-03-23 22:50:53 UTC) #24
Mark P
Oh, and please revise the changelist description. It's entirely wrong now. :-P --mark
3 years, 9 months ago (2017-03-23 23:04:44 UTC) #25
gcomanici
Thanks Mark! Title and description are now changed. https://codereview.chromium.org/2755503002/diff/120001/chrome/browser/autocomplete/search_provider_unittest.cc File chrome/browser/autocomplete/search_provider_unittest.cc (right): https://codereview.chromium.org/2755503002/diff/120001/chrome/browser/autocomplete/search_provider_unittest.cc#newcode2520 chrome/browser/autocomplete/search_provider_unittest.cc:2520: const ...
3 years, 9 months ago (2017-03-24 16:24:59 UTC) #27
Mark P
Apologies that I didn't get to this on Friday. It looks good! Normally I'd approve ...
3 years, 9 months ago (2017-03-25 22:16:49 UTC) #28
gcomanici
Thanks Mark. I addressed your comments on the last patch and I changed the name ...
3 years, 8 months ago (2017-03-29 02:12:29 UTC) #29
Mark P
https://codereview.chromium.org/2755503002/diff/160001/components/metrics/proto/omnibox_event.proto File components/metrics/proto/omnibox_event.proto (right): https://codereview.chromium.org/2755503002/diff/160001/components/metrics/proto/omnibox_event.proto#newcode1 components/metrics/proto/omnibox_event.proto:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
3 years, 8 months ago (2017-03-31 17:36:43 UTC) #30
Mark P
By the way, I'm glad you were busy this week, because so was I. :-) ...
3 years, 8 months ago (2017-03-31 17:37:33 UTC) #31
gcomanici
On 2017/03/31 17:37:33, Mark P wrote: > By the way, I'm glad you were busy ...
3 years, 8 months ago (2017-03-31 19:03:47 UTC) #32
gcomanici
https://codereview.chromium.org/2755503002/diff/160001/components/metrics/proto/omnibox_event.proto File components/metrics/proto/omnibox_event.proto (right): https://codereview.chromium.org/2755503002/diff/160001/components/metrics/proto/omnibox_event.proto#newcode1 components/metrics/proto/omnibox_event.proto:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
3 years, 8 months ago (2017-03-31 19:03:58 UTC) #33
Mark P
lgtm modulo nits Thanks for your attention to detail. --mark https://codereview.chromium.org/2755503002/diff/180001/components/metrics/proto/omnibox_event.proto File components/metrics/proto/omnibox_event.proto (right): https://codereview.chromium.org/2755503002/diff/180001/components/metrics/proto/omnibox_event.proto#newcode202 ...
3 years, 8 months ago (2017-03-31 20:50:25 UTC) #34
gcomanici
Thanks, Mark! https://codereview.chromium.org/2755503002/diff/180001/components/metrics/proto/omnibox_event.proto File components/metrics/proto/omnibox_event.proto (right): https://codereview.chromium.org/2755503002/diff/180001/components/metrics/proto/omnibox_event.proto#newcode202 components/metrics/proto/omnibox_event.proto:202: // the experimental servicei (note that not ...
3 years, 8 months ago (2017-04-01 16:01:52 UTC) #37
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/2755503002/200001
3 years, 8 months ago (2017-04-01 17:02:46 UTC) #42
commit-bot: I haz the power
Committed patchset #10 (id:200001) as https://chromium.googlesource.com/chromium/src/+/67d53ace23978af7d28d83fade1a09993079085a
3 years, 8 months ago (2017-04-01 17:08:13 UTC) #45
Mark P
3 years, 8 months ago (2017-04-01 21:08:03 UTC) #46
Message was sent while issue was closed.
https://codereview.chromium.org/2755503002/diff/180001/components/omnibox/bro...
File components/omnibox/browser/autocomplete_match.h (right):

https://codereview.chromium.org/2755503002/diff/180001/components/omnibox/bro...
components/omnibox/browser/autocomplete_match.h:373: // type. Contact service
providers for more details.
On 2017/04/01 16:01:52, gcomanici wrote:
> On 2017/03/31 20:50:25, Mark P wrote:
> > To correct my earlier suggestion, perhaps instead of the last two sentences,
> > say,
> > See |result_subtype_identifier| in omnibox.event.proto for more details.
> 
> Done.

In a trivial follow-up changelist, can you please revise this to say
result_subtype_identifier as I suggested?  You mentioned result_type_identifier,
which is not the name of the field in omnibox_event.proto.

ditto other file

Powered by Google App Engine
This is Rietveld 408576698