New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 904742 link

Starred by 2 users

Issue metadata

Status: Started
Owner:
Last visit > 30 days ago
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

contextual suggestions service not work.

Project Member Reported by pengcheng@google.com, Nov 13

Issue description

Chrome Version: None
OS: Android

It seems not a bug of Chrome app because seems the app I installed in my phone does not run into this code (https://cs.chromium.org/chromium/src/components/omnibox/browser/contextual_suggestions_service.cc?q=contextual_suggestions_service.cc&sq=package:chromium&dr&l=246), but seems this code misses cookies while sending request to google suggest server because by default URLLoader does not attach cookies.
 
Components: UI>Browser>Omnibox>ZeroSuggest Privacy
Labels: OS-Android
Owner: pengcheng@google.com
Status: Started (was: Untriaged)
Project Member

Comment 4 by bugdroid1@chromium.org, Nov 27

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ec2fc8ad1a2b9075fa315b46a3af834174981676

commit ec2fc8ad1a2b9075fa315b46a3af834174981676
Author: Pengcheng <pengcheng@google.com>
Date: Tue Nov 27 15:45:54 2018

Attach cookies while requesting for suggestions.

By default SimpleURLLoader does not attach cookies while sending
request, but for contextual suggestion service, the auth cookies are
required, otherwise it responses empty result.

Bug: 904742
Change-Id: I6d061c859cda9804fe7372634aae5c5d46916ea1
Reviewed-on: https://chromium-review.googlesource.com/c/1333017
Commit-Queue: Pengcheng Xu <pengcheng@google.com>
Reviewed-by: Mark Pearson <mpearson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611118}
[modify] https://crrev.com/ec2fc8ad1a2b9075fa315b46a3af834174981676/components/omnibox/browser/BUILD.gn
[modify] https://crrev.com/ec2fc8ad1a2b9075fa315b46a3af834174981676/components/omnibox/browser/contextual_suggestions_service.cc
[add] https://crrev.com/ec2fc8ad1a2b9075fa315b46a3af834174981676/components/omnibox/browser/contextual_suggestions_service_unittest.cc

Sign in to add a comment