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

Issue 2266083002: Avoid DCHECK failure for chrome:// URLs in autocomplete suggestions (Closed)

Created:
4 years, 4 months ago by mattreynolds
Modified:
4 years, 3 months ago
Reviewers:
Mark P, Peter Kasting
CC:
chromium-reviews, mmocny, jochen (gone - plz use gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid DCHECK failure for chrome:// URLs in autocomplete suggestions If the URL in the omnibox input field was not entered by the user, then avoid checking that the scheme of the default autocomplete suggestion is equivalent to the scheme of the input URL. This check causes a failure in the typical case for the Physical Web provider, which only offers suggestions when the user has not entered text in the omnibox and can suggest chrome://physical-web as the default suggestion. BUG= Committed: https://crrev.com/2b530deb82adb676d49e39e4ff7b24e206bbbf05 Cr-Commit-Position: refs/heads/master@{#416302}

Patch Set 1 #

Patch Set 2 : assert no default match #

Total comments: 2

Patch Set 3 : fix tests #

Patch Set 4 : add missing default match check #

Total comments: 10

Patch Set 5 : fix copy-paste error #

Total comments: 2

Patch Set 6 : revise comment #

Patch Set 7 : fix OmniboxViewViewsTest.CloseOmniboxPopupOnTextDrag #

Total comments: 24

Patch Set 8 : changes for pkasting@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -83 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -3 lines 0 comments Download
M components/omnibox/browser/autocomplete_controller.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M components/omnibox/browser/autocomplete_result.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -5 lines 0 comments Download
M components/omnibox/browser/autocomplete_result_unittest.cc View 1 2 3 4 5 6 7 8 chunks +22 lines, -17 lines 0 comments Download
M components/omnibox/browser/clipboard_url_provider.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M components/omnibox/browser/physical_web_provider.h View 1 2 3 4 5 6 7 2 chunks +13 lines, -4 lines 0 comments Download
M components/omnibox/browser/physical_web_provider.cc View 1 2 3 4 5 6 7 7 chunks +24 lines, -11 lines 0 comments Download
M components/omnibox/browser/physical_web_provider_unittest.cc View 1 2 3 4 5 6 7 6 chunks +102 lines, -38 lines 0 comments Download

Messages

Total messages: 36 (11 generated)
mattreynolds
Hi Mark, I came across this one while testing the PhysicalWebProvider changes. When the omnibox ...
4 years, 4 months ago (2016-08-22 19:01:05 UTC) #2
Mark P
On focus, the default match should be current URL so the user can tap and ...
4 years, 4 months ago (2016-08-22 19:18:46 UTC) #3
mattreynolds
On 2016/08/22 19:18:46, Mark P wrote: > On focus, the default match should be current ...
4 years, 4 months ago (2016-08-22 21:34:18 UTC) #4
Mark P
On 2016/08/22 21:34:18, mattreynolds wrote: > On 2016/08/22 19:18:46, Mark P wrote: > > On ...
4 years, 4 months ago (2016-08-22 22:08:33 UTC) #5
mattreynolds
> If the problem is the "has default match" dcheck earlier, I'd rather see that ...
4 years, 4 months ago (2016-08-23 21:57:01 UTC) #6
Mark P
On Tue, Aug 23, 2016 at 2:57 PM, <mattreynolds@chromium.org> wrote: > > If the problem ...
4 years, 4 months ago (2016-08-23 22:01:52 UTC) #7
mattreynolds
Hi Mark, PTAL. This change prevents non-verbatim matches from being marked as the default for ...
4 years, 3 months ago (2016-08-30 21:24:41 UTC) #8
Mark P
lgtm, with one minor comment below, plus assuming all the tests still pass --mark https://codereview.chromium.org/2266083002/diff/20001/components/omnibox/browser/physical_web_provider.h ...
4 years, 3 months ago (2016-08-30 22:26:20 UTC) #9
Mark P
P.S. If you have an Android test device, can you try it with your change? ...
4 years, 3 months ago (2016-08-30 22:52:27 UTC) #10
mattreynolds
On 2016/08/30 22:52:27, Mark P wrote: > P.S. If you have an Android test device, ...
4 years, 3 months ago (2016-08-30 23:08:05 UTC) #11
Mark P
On 2016/08/30 23:08:05, mattreynolds wrote: > On 2016/08/30 22:52:27, Mark P wrote: > > P.S. ...
4 years, 3 months ago (2016-08-30 23:18:32 UTC) #12
mattreynolds
I tested on a Pixel C and it seems fine, it didn't fail the DCHECK ...
4 years, 3 months ago (2016-08-31 22:06:48 UTC) #13
Mark P
still lgtm, minor comments below https://codereview.chromium.org/2266083002/diff/60001/components/omnibox/browser/physical_web_provider.cc File components/omnibox/browser/physical_web_provider.cc (right): https://codereview.chromium.org/2266083002/diff/60001/components/omnibox/browser/physical_web_provider.cc#newcode71 components/omnibox/browser/physical_web_provider.cc:71: // If the omnibox ...
4 years, 3 months ago (2016-08-31 22:39:33 UTC) #14
mattreynolds
Thanks Mark! https://codereview.chromium.org/2266083002/diff/60001/components/omnibox/browser/physical_web_provider_unittest.cc File components/omnibox/browser/physical_web_provider_unittest.cc (right): https://codereview.chromium.org/2266083002/diff/60001/components/omnibox/browser/physical_web_provider_unittest.cc#newcode124 components/omnibox/browser/physical_web_provider_unittest.cc:124: std::string(), GURL(), metrics::OmniboxEventProto::OTHER, On 2016/08/31 22:39:33, Mark ...
4 years, 3 months ago (2016-09-01 01:24:11 UTC) #15
Mark P
https://codereview.chromium.org/2266083002/diff/80001/components/omnibox/browser/physical_web_provider.cc File components/omnibox/browser/physical_web_provider.cc (right): https://codereview.chromium.org/2266083002/diff/80001/components/omnibox/browser/physical_web_provider.cc#newcode71 components/omnibox/browser/physical_web_provider.cc:71: // If the omnibox is not empty, add a ...
4 years, 3 months ago (2016-09-01 04:21:06 UTC) #16
mattreynolds
Thanks Mark! https://codereview.chromium.org/2266083002/diff/80001/components/omnibox/browser/physical_web_provider.cc File components/omnibox/browser/physical_web_provider.cc (right): https://codereview.chromium.org/2266083002/diff/80001/components/omnibox/browser/physical_web_provider.cc#newcode71 components/omnibox/browser/physical_web_provider.cc:71: // If the omnibox is not empty, ...
4 years, 3 months ago (2016-09-01 17:09:22 UTC) #17
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/2266083002/100001
4 years, 3 months ago (2016-09-01 17:09:47 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/228787)
4 years, 3 months ago (2016-09-01 17:49:16 UTC) #22
mattreynolds
Hi Jochen, could you take a look at the change in omnibox_view_views_browsertest.cc? The test fails ...
4 years, 3 months ago (2016-09-01 21:34:15 UTC) #24
Mark P
[jochen to CC] pkasting, can you please rubberstamp this changelist? I've reviewed it all, but ...
4 years, 3 months ago (2016-09-01 21:38:14 UTC) #27
Peter Kasting
LGTM with nits https://codereview.chromium.org/2266083002/diff/120001/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc File chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc (right): https://codereview.chromium.org/2266083002/diff/120001/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc#newcode321 chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc:321: const AutocompleteInput& input(base::ASCIIToUTF16("a"), base::string16::npos, Nit: Omit ...
4 years, 3 months ago (2016-09-01 22:06:36 UTC) #28
mattreynolds
Thanks Peter! https://codereview.chromium.org/2266083002/diff/120001/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc File chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc (right): https://codereview.chromium.org/2266083002/diff/120001/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc#newcode321 chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc:321: const AutocompleteInput& input(base::ASCIIToUTF16("a"), base::string16::npos, On 2016/09/01 22:06:35, ...
4 years, 3 months ago (2016-09-02 00:29:08 UTC) #29
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/2266083002/140001
4 years, 3 months ago (2016-09-02 17:11:02 UTC) #32
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-09-02 18:20:50 UTC) #34
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 18:27:42 UTC) #36
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/2b530deb82adb676d49e39e4ff7b24e206bbbf05
Cr-Commit-Position: refs/heads/master@{#416302}

Powered by Google App Engine
This is Rietveld 408576698