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

Issue 229733004: Omnibox: Make Bookmarks Set Inline_Autocompletion (Closed)

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

Description

Omnibox: Make Bookmarks Set Inline_Autocompletion Make BookmarksProvider set inline_autocompletion and allowed_to_be_default_match. This has no effect unless bookmarks are made to score more highly (and so they'll empirically end up as the top-scoring match). Includes unit tests. In the process, fix whether trailing slashes are omitted, for consistency with other providers. This will reduce jank if bookmarks are ever inlining. Tested interactively. Likewise, fix whether http:// is omitted. Tested interactively. Also, refactor a common piece of code from ShortcutsProvider to URLPrefix. Likewise, make a protected function in HistoryProvider public for use elsewhere. Mark it static (because it can be). Also, fix a PreventInlineAutocomplete bug in ShortcutsProvider. Adds a test for this. These tests fail before this change. Also, fix a PreventInlineAutocomplete bug in BuiltinProvider. Didn't bother adding a test for this because no tests examine inline_autocompletion here and I didn't want to bother adding some just for this minor change. Tested it interactively. These tests fail before this change. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263077

Patch Set 1 #

Patch Set 2 : fixup user input #

Total comments: 5

Patch Set 3 : peter's bug #

Patch Set 4 : massive new patch, new change description #

Total comments: 9

Patch Set 5 : expand shortcuts test #

Total comments: 6

Patch Set 6 : Peter's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -102 lines) Patch
M chrome/browser/autocomplete/autocomplete_provider.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider.h View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider.cc View 1 2 3 4 5 5 chunks +31 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider_unittest.cc View 1 2 3 3 chunks +55 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/builtin_provider.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_provider.h View 1 2 3 4 5 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/autocomplete/history_provider.cc View 1 2 3 3 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.h View 1 2 3 1 chunk +6 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.cc View 1 2 3 4 5 5 chunks +29 lines, -59 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider_unittest.cc View 1 2 3 4 2 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/url_prefix.h View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/url_prefix.cc View 1 2 3 2 chunks +54 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Mark P
ptal
6 years, 8 months ago (2014-04-09 00:09:14 UTC) #1
Peter Kasting
https://codereview.chromium.org/229733004/diff/20001/chrome/browser/autocomplete/bookmark_provider.cc File chrome/browser/autocomplete/bookmark_provider.cc (right): https://codereview.chromium.org/229733004/diff/20001/chrome/browser/autocomplete/bookmark_provider.cc#newcode169 chrome/browser/autocomplete/bookmark_provider.cc:169: // Determine |inline_autocomplete_offset|. This whole block looks suspiciously similar ...
6 years, 8 months ago (2014-04-09 00:53:32 UTC) #2
Mark P
I'll take these comments of yours to also mean "go ahead and write unit tests." ...
6 years, 8 months ago (2014-04-09 02:44:42 UTC) #3
Mark P
https://codereview.chromium.org/229733004/diff/20001/chrome/browser/autocomplete/bookmark_provider.cc File chrome/browser/autocomplete/bookmark_provider.cc (right): https://codereview.chromium.org/229733004/diff/20001/chrome/browser/autocomplete/bookmark_provider.cc#newcode169 chrome/browser/autocomplete/bookmark_provider.cc:169: // Determine |inline_autocomplete_offset|. On 2014/04/09 02:44:42, Mark P wrote: ...
6 years, 8 months ago (2014-04-09 20:21:41 UTC) #4
Mark P
Large, shiny, new patchset up, with a revised changelist description that explains everything it does. ...
6 years, 8 months ago (2014-04-09 22:03:16 UTC) #5
Peter Kasting
LGTM https://codereview.chromium.org/229733004/diff/60001/chrome/browser/autocomplete/history_provider.h File chrome/browser/autocomplete/history_provider.h (right): https://codereview.chromium.org/229733004/diff/60001/chrome/browser/autocomplete/history_provider.h#newcode22 chrome/browser/autocomplete/history_provider.h:22: // input. This method returns true if |input.prevent_inline_autocomplete()| ...
6 years, 8 months ago (2014-04-10 00:22:34 UTC) #6
Mark P
Only one interesting comment below. I'll submit on CQ now. I will do any following ...
6 years, 8 months ago (2014-04-10 17:10:01 UTC) #7
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 8 months ago (2014-04-10 17:11:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/229733004/100001
6 years, 8 months ago (2014-04-10 17:11:39 UTC) #9
commit-bot: I haz the power
Change committed as 263077
6 years, 8 months ago (2014-04-10 21:08:10 UTC) #10
Peter Kasting
https://codereview.chromium.org/229733004/diff/80001/chrome/browser/autocomplete/bookmark_provider.cc File chrome/browser/autocomplete/bookmark_provider.cc (left): https://codereview.chromium.org/229733004/diff/80001/chrome/browser/autocomplete/bookmark_provider.cc#oldcode48 chrome/browser/autocomplete/bookmark_provider.cc:48: ((input.matches_requested() == AutocompleteInput::BEST_MATCH) && On 2014/04/10 17:10:02, Mark P ...
6 years, 8 months ago (2014-04-14 22:56:12 UTC) #11
Mark P
https://codereview.chromium.org/229733004/diff/80001/chrome/browser/autocomplete/bookmark_provider.cc File chrome/browser/autocomplete/bookmark_provider.cc (left): https://codereview.chromium.org/229733004/diff/80001/chrome/browser/autocomplete/bookmark_provider.cc#oldcode48 chrome/browser/autocomplete/bookmark_provider.cc:48: ((input.matches_requested() == AutocompleteInput::BEST_MATCH) && On 2014/04/14 22:56:13, Peter Kasting ...
6 years, 8 months ago (2014-04-14 23:28:14 UTC) #12
Peter Kasting
6 years, 8 months ago (2014-04-14 23:33:52 UTC) #13
Message was sent while issue was closed.
On 2014/04/14 23:28:14, Mark P wrote:
> I gave you the two possible ways to simplify it.  What do you think of them? 
Or
> we can leave it as-is.

Sorry, I assumed you'd read my message as "yeah, do one of those".  I think
simplifying to just "bool want_asynchronous_matches" is fine.

Powered by Google App Engine
This is Rietveld 408576698