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

Issue 2965173002: Add ContextualSuggestionsService to Omnibox (Closed)

Created:
3 years, 5 months ago by gcomanici
Modified:
3 years, 4 months ago
CC:
chromium-reviews, jdonnelly+watch_chromium.org, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org, asvitkine+watch_chromium.org, blundell+watchlist_chromium.org, zkoch1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Create a new class `ContextualSuggestionsService` This class provides a service to fetch experimental contextual suggestions for the omnibox. Experimental Contextual Suggestions will soon use user identity to provide personalized suggestions. The service that is creating a request with a oauth2 token attached is becoming more complex and should live in its own class, much like the service that is fetching suggestions for the NTP (new tab page). This makes the logic a lot easier to test and increases code readability for the fetcher, related experiments, and the zero suggest autocomplete provider. Additionally, b/609084 is traking an effort to unify all the URL Fetchers that use an oauth2 token. Creating this new component should facilitate future changes towards this effort. From a technical perspective, the new class is similar to SuggestionsService in componenents/suggestions. More functionality will soon be necessary on client side and all the corresponding logic will be handled by the ContextualSuggestionsService. Design doc: https://docs.google.com/document/d/1FUowJo9AnSziiQfBumyicaTWDKjOcM574aOBwKIVpbU/edit#heading=h.xgjl2srtytjt BUG=692471, 609084

Patch Set 1 : Initial component creation #

Total comments: 63

Patch Set 2 #

Total comments: 10

Patch Set 3 #

Total comments: 14

Patch Set 4 : Fix includes and the composition of the fetcher. #

Patch Set 5 : Remove code duplication. #

Patch Set 6 : Move contextual suggestions service to c/o/b #

Total comments: 53
Unified diffs Side-by-side diffs Delta from patch set Stats (+536 lines, -162 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -1 line 1 comment Download
M chrome/browser/autocomplete/chrome_autocomplete_provider_client.h View 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc View 1 2 3 4 5 3 chunks +7 lines, -0 lines 1 comment Download
A chrome/browser/autocomplete/contextual_suggestions_service_factory.h View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/autocomplete/contextual_suggestions_service_factory.cc View 1 2 3 4 5 1 chunk +55 lines, -0 lines 1 comment Download
M components/omnibox/browser/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M components/omnibox/browser/DEPS View 1 2 3 4 5 2 chunks +2 lines, -0 lines 4 comments Download
M components/omnibox/browser/autocomplete_provider_client.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
A components/omnibox/browser/contextual_suggestions_service.h View 1 2 3 4 5 1 chunk +105 lines, -0 lines 34 comments Download
A components/omnibox/browser/contextual_suggestions_service.cc View 1 2 3 4 5 1 chunk +266 lines, -0 lines 2 comments Download
M components/omnibox/browser/omnibox_field_trial.h View 1 2 3 4 5 2 chunks +0 lines, -25 lines 1 comment Download
M components/omnibox/browser/omnibox_field_trial.cc View 1 2 3 4 5 3 chunks +1 line, -26 lines 1 comment Download
M components/omnibox/browser/zero_suggest_provider.h View 1 2 3 4 2 chunks +3 lines, -3 lines 2 comments Download
M components/omnibox/browser/zero_suggest_provider.cc View 1 2 3 4 5 4 chunks +43 lines, -107 lines 6 comments Download

Messages

Total messages: 45 (16 generated)
gcomanici
Hi Marc, Could you please take a look at the files in `components/contextual_suggestions` to make ...
3 years, 5 months ago (2017-07-06 02:25:37 UTC) #6
Marc Treib
This generally looks good; I've added a bunch of comments below. I mostly looked at ...
3 years, 5 months ago (2017-07-06 08:32:21 UTC) #7
Justin Donnelly
Is there a design doc for this new component? Per go/newchromefeature*, any work crossing components ...
3 years, 5 months ago (2017-07-06 14:16:24 UTC) #9
gcomanici
Thanks Marc! PTAL. https://codereview.chromium.org/2965173002/diff/60001/chrome/browser/autocomplete/contextual_suggestions_service_factory.h File chrome/browser/autocomplete/contextual_suggestions_service_factory.h (right): https://codereview.chromium.org/2965173002/diff/60001/chrome/browser/autocomplete/contextual_suggestions_service_factory.h#newcode1 chrome/browser/autocomplete/contextual_suggestions_service_factory.h:1: // Copyright (c) 2017 The Chromium ...
3 years, 5 months ago (2017-07-06 15:34:19 UTC) #10
gcomanici
On 2017/07/06 14:16:24, Justin Donnelly wrote: > Is there a design doc for this new ...
3 years, 5 months ago (2017-07-06 15:41:44 UTC) #11
Marc Treib
First description line is still too long. Mostly looks good to me now, a few ...
3 years, 5 months ago (2017-07-06 16:02:46 UTC) #14
gcomanici
Thanks Marc for the careful review :) I changed the subject of the CL, as ...
3 years, 5 months ago (2017-07-06 16:54:17 UTC) #17
Marc Treib
LGTM (but again, you'll have to get an owner to approve this) markusheintz@ is a ...
3 years, 5 months ago (2017-07-06 16:58:27 UTC) #18
Justin Donnelly
On 2017/07/06 15:41:44, gcomanici wrote: > On 2017/07/06 14:16:24, Justin Donnelly wrote: > > Is ...
3 years, 5 months ago (2017-07-06 17:06:37 UTC) #19
gcomanici
On 2017/07/06 17:06:37, Justin Donnelly wrote: > On 2017/07/06 15:41:44, gcomanici wrote: > > On ...
3 years, 5 months ago (2017-07-06 17:55:39 UTC) #21
Justin Donnelly
On 2017/07/06 17:55:39, gcomanici wrote: > WRT the design doc: the feature already passed through ...
3 years, 5 months ago (2017-07-06 18:14:01 UTC) #23
gcomanici
Hi Colin, Can you take a look for an OWNERS's review? We discussed in a ...
3 years, 5 months ago (2017-07-07 20:05:26 UTC) #25
Mark P
A gave this a quick, haphazard review. I have two main questions / concerns about ...
3 years, 5 months ago (2017-07-07 20:13:55 UTC) #26
gcomanici
On 2017/07/07 20:13:55, Mark P wrote: > A gave this a quick, haphazard review. I ...
3 years, 5 months ago (2017-07-07 21:24:29 UTC) #27
gcomanici
https://codereview.chromium.org/2965173002/diff/120001/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc File chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc (right): https://codereview.chromium.org/2965173002/diff/120001/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc#newcode130 chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc:130: contextual_suggestions::ContextualSuggestionsService* On 2017/07/07 20:13:54, Mark P wrote: > #include ...
3 years, 5 months ago (2017-07-07 21:24:46 UTC) #28
Mark P
On 2017/07/07 21:24:29, gcomanici wrote: > On 2017/07/07 20:13:55, Mark P wrote: > > A ...
3 years, 5 months ago (2017-07-07 23:55:43 UTC) #29
blundell
On 2017/07/07 23:55:43, Mark P wrote: > On 2017/07/07 21:24:29, gcomanici wrote: > > On ...
3 years, 5 months ago (2017-07-10 11:30:37 UTC) #30
Marc Treib
On 2017/07/10 11:30:37, blundell wrote: > On 2017/07/07 23:55:43, Mark P wrote: > > On ...
3 years, 5 months ago (2017-07-10 11:39:59 UTC) #31
blundell
On 2017/07/10 11:39:59, Marc Treib wrote: > On 2017/07/10 11:30:37, blundell wrote: > > On ...
3 years, 5 months ago (2017-07-10 14:34:55 UTC) #32
gcomanici
I will be the first to admit that I was a bit too ambitious in ...
3 years, 5 months ago (2017-07-10 16:31:07 UTC) #34
blundell
On 2017/07/10 16:31:07, gcomanici wrote: > I will be the first to admit that I ...
3 years, 5 months ago (2017-07-11 08:53:09 UTC) #35
gcomanici
Since I am going to be OOO for a few weeks starting tomorrow, I will ...
3 years, 5 months ago (2017-07-11 17:36:46 UTC) #36
Mark P
I did a limited review. (Ran out of time for more.) Here are my preliminary ...
3 years, 5 months ago (2017-07-17 23:36:12 UTC) #38
blundell
https://codereview.chromium.org/2965173002/diff/200001/components/omnibox/browser/DEPS File components/omnibox/browser/DEPS (right): https://codereview.chromium.org/2965173002/diff/200001/components/omnibox/browser/DEPS#newcode19 components/omnibox/browser/DEPS:19: "+components/signin/core/browser", On 2017/07/17 23:36:12, Mark P wrote: > I'm ...
3 years, 5 months ago (2017-07-18 15:21:16 UTC) #39
Mark P
I managed to review more of the changelist except for the bulk of components/omnibox/browser/contextual_suggestions_service.cc Below ...
3 years, 5 months ago (2017-07-18 19:11:30 UTC) #40
Toyama
Hi Mark, can you take another look? Also, because this is not my issue, we ...
3 years, 5 months ago (2017-07-18 20:28:48 UTC) #42
Mark P
On 2017/07/18 20:28:48, Toyama wrote: > Hi Mark, can you take another look? You replied ...
3 years, 5 months ago (2017-07-18 23:24:46 UTC) #43
Mark P
A few replies to your comments. --mark https://codereview.chromium.org/2965173002/diff/200001/components/omnibox/browser/contextual_suggestions_service.h File components/omnibox/browser/contextual_suggestions_service.h (right): https://codereview.chromium.org/2965173002/diff/200001/components/omnibox/browser/contextual_suggestions_service.h#newcode59 components/omnibox/browser/contextual_suggestions_service.h:59: // * ...
3 years, 5 months ago (2017-07-18 23:45:50 UTC) #44
Toyama
3 years, 5 months ago (2017-07-19 00:06:45 UTC) #45
On 2017/07/18 23:24:46, Mark P wrote:
> On 2017/07/18 20:28:48, Toyama wrote:
> > Hi Mark, can you take another look?
> 
> You replied to my comments as if you fixed them, yet didn't upload a
> new patch set in this issue.
> 
> > Also, because this is not my issue, we should probably continue the review
on
> > https://chromium-review.googlesource.com/c/576284/ instead.
> 
> And the new issue that you want me to review contains only a single patchset
> that doesn't have the fixes to my comments.  Did you forget to upload a new
> patch set?
> 
> Also, I'll note that there are comments in this patchset that you didn't
> reply to at all.
> 
> I will publish additional comments on
> https://chromium-review.googlesource.com/c/576284/
> 
> --mark

I'm sorry, I forgot to do "git cl upload". It's confusing to go back and forth
between two code review systems. Let's do everything from Gerrit.

Powered by Google App Engine
This is Rietveld 408576698