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

Issue 165455: Autocomplete suggestions for bookmark TitleMatch's does not order matching bo... (Closed)

Created:
11 years, 4 months ago by pierre.lafayette
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Autocomplete suggestions for bookmark TitleMatch's does not order matching bookmark results by anything other than their position in the BookmarkIndex. When your search term matches many bookmarks in a particular BookmarkIndex entry, you may not see your most used bookmarks rather rare and obscure bookmarks that may have only been visited once or twice. BUG=16230 TEST=Use a clean profile and import Firefox bookmarks and history. Set your omnibox-popup-count to say 30 to see more results in the autocomplete. Type in a term to the Firefox location bar and see what results you get back. Firefox uses a "frecency" algorithm that prioritizes the more frequently accessed and more recent matches. Now type in the same term to the Omnibox and you'll probably see some rarely used bookmarks that only show because of their position in the bookmark index.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 8

Patch Set 9 : '' #

Total comments: 5

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Total comments: 1

Patch Set 14 : '' #

Total comments: 3

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Patch Set 18 : '' #

Total comments: 19

Patch Set 19 : '' #

Total comments: 6

Patch Set 20 : '' #

Total comments: 1

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Patch Set 24 : '' #

Patch Set 25 : '' #

Total comments: 1

Patch Set 26 : '' #

Patch Set 27 : '' #

Patch Set 28 : '' #

Total comments: 3

Patch Set 29 : '' #

Total comments: 1

Patch Set 30 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -47 lines) Patch
M chrome/browser/autocomplete/history_contents_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/autocomplete/history_contents_provider_unittest.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_index.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +36 lines, -6 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_index.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +54 lines, -18 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_index_unittest.cc View 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 4 chunks +85 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/history/history_types.h View 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 2 chunks +19 lines, -2 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
pierre.lafayette
Hi Peter, The goal of this patch is to sort TitleMatch's retrieved under the same ...
11 years, 4 months ago (2009-08-13 15:03:33 UTC) #1
Peter Kasting
Scott needs to look at this too. Added him to reviewer list. It looks to ...
11 years, 4 months ago (2009-08-13 18:14:01 UTC) #2
pierre.lafayette
On 2009/08/13 18:14:01, Peter Kasting wrote: > On 2009/08/13 15:03:33, pierre.lafayette wrote: > > The ...
11 years, 4 months ago (2009-08-13 19:52:00 UTC) #3
sky
Sorry for the delay in responding, was on vacation. I spoke with Peter and others ...
11 years, 4 months ago (2009-08-18 18:16:44 UTC) #4
Peter Kasting
On 2009/08/18 18:16:44, sky wrote: > I spoke with Peter and others about this. Here's ...
11 years, 4 months ago (2009-08-18 18:49:20 UTC) #5
pierre.lafayette
I've moved the sort to the bookmark index. Let me know if this is not ...
11 years, 4 months ago (2009-08-19 00:11:00 UTC) #6
Peter Kasting
On Tue, Aug 18, 2009 at 5:11 PM, <pierre.lafayette@gmail.com> wrote: > I've moved the sort ...
11 years, 4 months ago (2009-08-19 02:01:51 UTC) #7
pierre.lafayette
On 2009/08/19 02:01:51, Peter Kasting wrote: > I don't really know what the match_positions value ...
11 years, 4 months ago (2009-08-19 06:49:36 UTC) #8
sky
In addition to the following you need to add tests for coverage of this code. ...
11 years, 4 months ago (2009-08-19 14:20:59 UTC) #9
pierre.lafayette
Updated. http://codereview.chromium.org/165455/diff/2056/3050 File chrome/browser/bookmarks/bookmark_index.cc (right): http://codereview.chromium.org/165455/diff/2056/3050#newcode71 Line 71: results->erase(results->begin(), On 2009/08/19 14:20:59, sky wrote: > ...
11 years, 4 months ago (2009-08-19 20:38:45 UTC) #10
Peter Kasting
http://codereview.chromium.org/165455/diff/2056/3050 File chrome/browser/bookmarks/bookmark_index.cc (right): http://codereview.chromium.org/165455/diff/2056/3050#newcode71 Line 71: results->erase(results->begin(), On 2009/08/19 20:38:45, pierre.lafayette wrote: > On ...
11 years, 4 months ago (2009-08-19 20:40:39 UTC) #11
sky
Mostly there. Don't forget unit tests. http://codereview.chromium.org/165455/diff/3055/2065 File chrome/browser/autocomplete/history_contents_provider.cc (right): http://codereview.chromium.org/165455/diff/3055/2065#newcode279 Line 279: DCHECK_EQ(0, results_.size()); ...
11 years, 4 months ago (2009-08-19 21:15:17 UTC) #12
pierre.lafayette
http://codereview.chromium.org/165455/diff/3082/2091 File chrome/browser/bookmarks/bookmark_index_unittest.cc (right): http://codereview.chromium.org/165455/diff/3082/2091#newcode322 Line 322: SortMatches(&url_db, matches, &node_typed_counts, 4); I'm trying to mock ...
11 years, 4 months ago (2009-08-24 16:16:20 UTC) #13
sky
Rather than mocking I would suggest creating an InMemoryDB and adding what you need to ...
11 years, 4 months ago (2009-08-24 18:41:10 UTC) #14
pierre.lafayette
On 2009/08/24 18:41:10, sky wrote: > Rather than mocking I would suggest creating an InMemoryDB ...
11 years, 4 months ago (2009-08-24 19:47:02 UTC) #15
sky
http://codereview.chromium.org/165455/diff/3086/2100 File chrome/browser/bookmarks/bookmark_index.cc (right): http://codereview.chromium.org/165455/diff/3086/2100#newcode76 Line 76: // vector is in descending order of typed ...
11 years, 4 months ago (2009-08-24 20:37:53 UTC) #16
pierre.lafayette
On 2009/08/24 20:37:53, sky wrote: > http://codereview.chromium.org/165455/diff/3086/2100 > File chrome/browser/bookmarks/bookmark_index.cc (right): > > http://codereview.chromium.org/165455/diff/3086/2100#newcode76 > ...
11 years, 4 months ago (2009-08-25 05:01:10 UTC) #17
Peter Kasting
On Mon, Aug 24, 2009 at 10:01 PM, <pierre.lafayette@gmail.com> wrote: > HistoryContentsProvider::CombineResults attributes a relevance ...
11 years, 4 months ago (2009-08-25 05:07:45 UTC) #18
pierre.lafayette
On 2009/08/25 05:07:45, Peter Kasting wrote: > That code is retarded. I suggest changing it ...
11 years, 3 months ago (2009-08-25 12:42:11 UTC) #19
sky
LGTM
11 years, 3 months ago (2009-08-25 14:28:53 UTC) #20
pierre.lafayette
On 2009/08/25 14:28:53, sky wrote: > LGTM Peter?
11 years, 3 months ago (2009-08-25 14:36:53 UTC) #21
Peter Kasting
Looks pretty good, mostly just nits. http://codereview.chromium.org/165455/diff/2114/2115 File chrome/browser/autocomplete/history_contents_provider.cc (right): http://codereview.chromium.org/165455/diff/2114/2115#newcode158 Line 158: for (size_t ...
11 years, 3 months ago (2009-08-25 17:28:31 UTC) #22
pierre.lafayette
Updated. http://codereview.chromium.org/165455/diff/2114/2118 File chrome/browser/bookmarks/bookmark_index_unittest.cc (right): http://codereview.chromium.org/165455/diff/2114/2118#newcode20 Line 20: BookmarkIndexTest() : loop_(MessageLoop::TYPE_DEFAULT), On 2009/08/25 17:28:31, Peter ...
11 years, 3 months ago (2009-08-25 22:30:11 UTC) #23
Peter Kasting
LGTM except for the unittest MessageLoop issue. Looping in Darin in hopes of finding out ...
11 years, 3 months ago (2009-08-25 22:41:02 UTC) #24
sky
http://codereview.chromium.org/165455/diff/2114/2118 File chrome/browser/bookmarks/bookmark_index_unittest.cc (right): http://codereview.chromium.org/165455/diff/2114/2118#newcode20 Line 20: BookmarkIndexTest() : loop_(MessageLoop::TYPE_DEFAULT), On 2009/08/25 22:41:03, Peter Kasting ...
11 years, 3 months ago (2009-08-25 22:50:24 UTC) #25
Peter Kasting
On Tue, Aug 25, 2009 at 3:50 PM, <sky@chromium.org> wrote: > Using TestingProfile like this ...
11 years, 3 months ago (2009-08-25 22:59:09 UTC) #26
sky
On 2009/08/25 22:59:09, Peter Kasting wrote: > On Tue, Aug 25, 2009 at 3:50 PM, ...
11 years, 3 months ago (2009-08-25 23:04:42 UTC) #27
pierre.lafayette
On 2009/08/25 23:04:42, sky wrote: > Yes, it should be possible to keep this as ...
11 years, 3 months ago (2009-08-25 23:51:48 UTC) #28
Peter Kasting
LGTM! http://codereview.chromium.org/165455/diff/3147/2132 File chrome/browser/bookmarks/bookmark_index_unittest.cc (right): http://codereview.chromium.org/165455/diff/3147/2132#newcode217 Line 217: // We need to initialize the current ...
11 years, 3 months ago (2009-08-25 23:58:51 UTC) #29
pierre.lafayette
On 2009/08/25 23:58:51, Peter Kasting wrote: > LGTM! > > http://codereview.chromium.org/165455/diff/3147/2132 > File chrome/browser/bookmarks/bookmark_index_unittest.cc (right): ...
11 years, 3 months ago (2009-08-26 00:04:03 UTC) #30
Peter Kasting
Do you need one of us to commit this for you?
11 years, 3 months ago (2009-08-26 04:10:37 UTC) #31
pierre.lafayette
On 2009/08/26 04:10:37, Peter Kasting wrote: > Do you need one of us to commit ...
11 years, 3 months ago (2009-08-26 04:52:25 UTC) #32
pierre.lafayette
I'm not sure about these ones: ../chrome/browser/bookmarks/bookmark_model.h: In member function 'void BookmarkIndexTest::DoneLoading()': ../chrome/browser/bookmarks/bookmark_model.h:401: error: 'BookmarkStorage::LoadDetails* ...
11 years, 3 months ago (2009-08-26 16:36:05 UTC) #33
sky
On Tue, Aug 25, 2009 at 9:52 PM, <pierre.lafayette@gmail.com> wrote: > On 2009/08/26 04:10:37, Peter ...
11 years, 3 months ago (2009-08-26 16:43:02 UTC) #34
sky
Compile failure on mac: http://build.chromium.org/buildbot/try-server/builders/mac/builds/14762/ste= ps/compile/logs/stdio -Scott On Wed, Aug 26, 2009 at 8:38 AM, ...
11 years, 3 months ago (2009-08-26 17:10:44 UTC) #35
pierre.lafayette
On 2009/08/26 17:10:44, sky wrote: > Compile failure on mac: > > http://build.chromium.org/buildbot/try-server/builders/mac/builds/14762/ste= > ps/compile/logs/stdio ...
11 years, 3 months ago (2009-08-26 18:15:09 UTC) #36
sky
http://codereview.chromium.org/165455/diff/2162/3192 File chrome/browser/bookmarks/bookmark_index_unittest.cc (right): http://codereview.chromium.org/165455/diff/2162/3192#newcode220 Line 220: model_.reset(new BookmarkModel(&profile)); Rather than adding a bunch of ...
11 years, 3 months ago (2009-08-26 18:20:32 UTC) #37
pierre.lafayette
On 2009/08/26 18:20:32, sky wrote: > http://codereview.chromium.org/165455/diff/2162/3192 > File chrome/browser/bookmarks/bookmark_index_unittest.cc (right): > > http://codereview.chromium.org/165455/diff/2162/3192#newcode220 > ...
11 years, 3 months ago (2009-08-26 19:30:56 UTC) #38
sky
Onto the next error: http://build.chromium.org/buildbot/try-server/builders/mac/builds/14816/steps/compile/logs/stdio . -Scott On Wed, Aug 26, 2009 at 12:30 PM, ...
11 years, 3 months ago (2009-08-26 20:53:45 UTC) #39
pierre.lafayette
Okay I've updated history_contents_provider_unittest.cc. http://codereview.chromium.org/165455
11 years, 3 months ago (2009-08-27 03:21:19 UTC) #40
sky
On the good news your build past all tests on all bots. Just one change ...
11 years, 3 months ago (2009-08-27 20:32:36 UTC) #41
Peter Kasting
http://codereview.chromium.org/165455/diff/2184/3214 File chrome/browser/autocomplete/history_contents_provider.cc (right): http://codereview.chromium.org/165455/diff/2184/3214#newcode161 Line 161: for (size_t i = results_.size() - 1; i ...
11 years, 3 months ago (2009-08-27 20:37:49 UTC) #42
pierre.lafayette
Updated. http://codereview.chromium.org/165455/diff/2184/3214 File chrome/browser/autocomplete/history_contents_provider.cc (right): http://codereview.chromium.org/165455/diff/2184/3214#newcode161 Line 161: for (size_t i = results_.size() - 1; ...
11 years, 3 months ago (2009-08-27 23:25:54 UTC) #43
Peter Kasting
One last nit for this latest patch (sorry!!!) http://codereview.chromium.org/165455/diff/5001/5008 File chrome/browser/history/history_types.h (right): http://codereview.chromium.org/165455/diff/5001/5008#newcode396 Line 396: ...
11 years, 3 months ago (2009-08-27 23:34:56 UTC) #44
pierre.lafayette
On 2009/08/27 23:34:56, Peter Kasting wrote: > One last nit for this latest patch (sorry!!!) ...
11 years, 3 months ago (2009-08-28 00:11:37 UTC) #45
Peter Kasting
Tweaked and landed in r24704, let's see if the bots break.
11 years, 3 months ago (2009-08-28 00:18:24 UTC) #46
sky
11 years, 3 months ago (2009-08-28 16:00:11 UTC) #47
YAY!

  -Scott

On Thu, Aug 27, 2009 at 5:18 PM, <pkasting@chromium.org> wrote:
> Tweaked and landed in r24704, let's see if the bots break.
>
> http://codereview.chromium.org/165455
>

Powered by Google App Engine
This is Rietveld 408576698