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

Issue 226283009: Make AutocompleteInput::Parse() more strict: return QUERY for all inputs that (Closed)

Created:
6 years, 8 months ago by Peter Kasting
Modified:
6 years, 8 months ago
Reviewers:
Mark P
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

Make AutocompleteInput::Parse() more strict: return QUERY for all inputs that can't be fixed up into valid URLs. BUG=357172 TEST=Typing "google.com/%00" (no quotes) into a debug build omnibox should not cause a DCHECK R=mpearson@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266217

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -27 lines) Patch
M chrome/browser/autocomplete/autocomplete_input.cc View 1 2 5 chunks +16 lines, -22 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_input_unittest.cc View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/history_quick_provider.cc View 1 1 chunk +0 lines, -2 lines 2 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Peter Kasting
This is what you urged me to do a while ago. I have one major ...
6 years, 8 months ago (2014-04-05 00:23:08 UTC) #1
Mark P
Can you point me to where we discussed this before? I'd like to refresh my ...
6 years, 8 months ago (2014-04-05 00:27:48 UTC) #2
Peter Kasting
On 2014/04/05 00:27:48, Mark P wrote: > Can you point me to where we discussed ...
6 years, 8 months ago (2014-04-05 00:30:49 UTC) #3
Mark P
On 2014/04/05 00:30:49, Peter Kasting wrote: > On 2014/04/05 00:27:48, Mark P wrote: > > ...
6 years, 8 months ago (2014-04-09 22:07:08 UTC) #4
Peter Kasting
On 2014/04/09 22:07:08, Mark P wrote: > Yes, I think I said that. This change, ...
6 years, 8 months ago (2014-04-09 22:56:42 UTC) #5
Peter Kasting
Ping.
6 years, 8 months ago (2014-04-15 00:00:26 UTC) #6
Mark P
On 2014/04/15 00:00:26, Peter Kasting wrote: > Ping. I've been postponing this review because the ...
6 years, 8 months ago (2014-04-15 16:20:27 UTC) #7
Peter Kasting
On 2014/04/15 16:20:27, Mark P wrote: > On 2014/04/15 00:00:26, Peter Kasting wrote: > > ...
6 years, 8 months ago (2014-04-15 20:01:52 UTC) #8
Mark P
I don't think this is good as-is. I started going through the places where AutocompleteInput::QUERY ...
6 years, 8 months ago (2014-04-15 22:00:10 UTC) #9
Peter Kasting
On 2014/04/15 22:00:10, Mark P wrote: > I don't think this is good as-is. I ...
6 years, 8 months ago (2014-04-15 22:11:30 UTC) #10
Mark P
On Tue, Apr 15, 2014 at 3:11 PM, <pkasting@chromium.org> wrote: > On 2014/04/15 22:00:10, Mark ...
6 years, 8 months ago (2014-04-15 22:30:44 UTC) #11
Peter Kasting
On Tue, Apr 15, 2014 at 3:30 PM, Mark Pearson <mpearson@chromium.org> wrote: > Neither search_provider.cc ...
6 years, 8 months ago (2014-04-15 22:56:30 UTC) #12
Peter Kasting
So, in our IM chat about this, you said two things: (1) You want to ...
6 years, 8 months ago (2014-04-22 21:25:30 UTC) #13
Mark P
Okay, I haven't yet audited the places type() is used yet, but I looked closely ...
6 years, 8 months ago (2014-04-24 18:31:29 UTC) #14
Peter Kasting
On 2014/04/24 18:31:29, Mark P wrote: > for an input such as "abc", is it ...
6 years, 8 months ago (2014-04-24 20:43:20 UTC) #15
Mark P
On Thu, Apr 24, 2014 at 1:43 PM, <pkasting@chromium.org> wrote: > On 2014/04/24 18:31:29, Mark ...
6 years, 8 months ago (2014-04-24 22:42:00 UTC) #16
Peter Kasting
On 2014/04/24 22:42:00, Mark P wrote: > > won't site: be now classified as a ...
6 years, 8 months ago (2014-04-24 23:04:57 UTC) #17
Mark P
On Thu, Apr 24, 2014 at 4:04 PM, <pkasting@chromium.org> wrote: > On 2014/04/24 22:42:00, Mark ...
6 years, 8 months ago (2014-04-24 23:54:59 UTC) #18
Mark P
Okay, I audited all the code. One thing in particular I looked for was whether ...
6 years, 8 months ago (2014-04-25 02:59:19 UTC) #19
Mark P
lgtm https://codereview.chromium.org/226283009/diff/40001/chrome/browser/autocomplete/history_quick_provider.cc File chrome/browser/autocomplete/history_quick_provider.cc (left): https://codereview.chromium.org/226283009/diff/40001/chrome/browser/autocomplete/history_quick_provider.cc#oldcode129 chrome/browser/autocomplete/history_quick_provider.cc:129: (autocomplete_input_.type() != AutocompleteInput::FORCED_QUERY) && On 2014/04/25 02:59:20, Mark ...
6 years, 8 months ago (2014-04-25 03:00:29 UTC) #20
Peter Kasting
6 years, 8 months ago (2014-04-25 18:08:00 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 manually as r266217 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698