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

Issue 108643003: Omnibox: Bug Fixes for Shortcuts Inlining (Closed)

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

Description

Omnibox: Bug Fixes for Shortcuts Inlining Precisely, fixes up URL-like inputs before comparing to the shortcuts fill_into_edit in order to better determine inlineability. This is especially useful for inputs such as about: which need to have their scheme fixed up to be recognized as comparable to chrome:// shortcuts. BUG=328220 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242029 R=pkasting@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242119

Patch Set 1 #

Patch Set 2 : reenable DCHECK; revise ocmment #

Patch Set 3 : remove comment #

Total comments: 12

Patch Set 4 : Peter's comments #

Patch Set 5 : new fixup strategy #

Total comments: 1

Patch Set 6 : cleanup comments; spacing #

Total comments: 4

Patch Set 7 : (broken) snapshot #

Patch Set 8 : Some restructuring, added appropriate tests. #

Patch Set 9 : #

Patch Set 10 : rebase, post-revert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -130 lines) Patch
M chrome/browser/autocomplete/autocomplete_provider.h View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider.cc View 1 2 3 4 5 6 7 8 2 chunks +91 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/history_provider.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/browser/autocomplete/history_provider.cc View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -91 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.cc View 1 2 3 4 5 6 7 8 7 chunks +42 lines, -14 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider_unittest.cc View 1 2 3 4 5 6 7 2 chunks +48 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Mark P
Hi Peter, Hope you had a good break! What do you think about this approach ...
7 years ago (2013-12-17 19:29:01 UTC) #1
Peter Kasting
I'm worried about this handcoded addition. I feel like using HistoryProvider::FixupUserInput() might be safer if ...
7 years ago (2013-12-17 19:56:48 UTC) #2
Mark P
>>> I'm worried about this handcoded addition. I feel like using HistoryProvider::FixupUserInput() might be safer ...
7 years ago (2013-12-17 20:36:17 UTC) #3
Peter Kasting
On 2013/12/17 20:36:17, Mark P wrote: > I think using FixupUserInput() will be good, if ...
7 years ago (2013-12-17 21:21:35 UTC) #4
Mark P
New approach, using the two-attempt version (regular input, plus fixed up input). This feels safer ...
7 years ago (2013-12-17 22:52:40 UTC) #5
Peter Kasting
Obviously, this needs some tests. It would be nice to come up with a test ...
7 years ago (2013-12-17 23:04:22 UTC) #6
Mark P
I implemented the approach we discussed, plus added tests. lease take a look. --mark https://codereview.chromium.org/108643003/diff/100001/chrome/browser/autocomplete/history_provider.h ...
7 years ago (2013-12-19 23:18:56 UTC) #7
Peter Kasting
LGTM. I don't remember actually discussing moving BestURLPrefixWithWWWCase() into the class -- I would probably ...
7 years ago (2013-12-19 23:32:27 UTC) #8
Mark P
On 2013/12/19 23:32:27, Peter Kasting wrote: > LGTM. I don't remember actually discussing moving BestURLPrefixWithWWWCase() ...
7 years ago (2013-12-20 00:39:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/108643003/140001
7 years ago (2013-12-20 00:40:43 UTC) #10
commit-bot: I haz the power
Change committed as 242029
7 years ago (2013-12-20 07:27:56 UTC) #11
Mark P
7 years ago (2013-12-20 17:42:07 UTC) #12
Message was sent while issue was closed.
Committed patchset #10 manually as r242119 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698