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

Issue 184663002: Omnibox: Make URLs of Bookmarks Searchable (Closed)

Created:
6 years, 9 months ago by Mark P
Modified:
6 years, 8 months ago
Reviewers:
tfarina, Peter Kasting, sky
CC:
chromium-reviews, tfarina, James Su, browser-components-watch_chromium.org
Visibility:
Public.

Description

Omnibox: Make URLs of Bookmarks Searchable In particular, this makes * BookmarkIndex index the URLs for bookmarks * BookmarkIndex search for matches (match positions) within those URLs * BookmarkProvider score based on both title and URL matches All these is guarded by a field trial, also added in this changelist. I added ample unit tests. I also verified this works by testing it interactively using a local variations server and --force-fieldtrials. BUG=157204 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265539

Patch Set 1 #

Total comments: 6

Patch Set 2 : lots of improvements #

Patch Set 3 : now with lots of tests; tentatively complete patchset #

Patch Set 4 : tested; works #

Total comments: 30

Patch Set 5 : Peter's comments #

Total comments: 4

Patch Set 6 : pkasting and tfarina's comments #

Total comments: 6

Patch Set 7 : add a comment #

Patch Set 8 : #

Total comments: 4

Patch Set 9 : sky's comments #

Patch Set 10 : include for size_t #

Patch Set 11 : rebase #

Patch Set 12 : rebase again #

Patch Set 13 : fix ALL_MATCHES (in response to recent changes) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+729 lines, -372 lines) Patch
M chrome/browser/autocomplete/bookmark_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +108 lines, -79 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +68 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/url_prefix.h View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/url_prefix.cc View 1 2 3 4 2 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/bookmarks/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_codec_unittest.cc View 1 2 3 4 5 6 7 6 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_index.h View 1 2 3 4 5 6 7 8 6 chunks +28 lines, -20 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_index.cc View 1 2 3 4 5 6 7 6 chunks +59 lines, -16 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_index_unittest.cc View 1 2 3 4 5 6 7 15 chunks +174 lines, -58 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +18 lines, -8 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_factory.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_model_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils_unittest.cc View 1 2 3 4 5 6 7 8 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/bookmarks/bookmark_api_helpers_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/expire_history_backend_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/in_memory_url_index_types.h View 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/history/scored_history_match.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/history/url_database.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/url_index_private_data.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/importer/profile_writer_unittest.cc View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial.h View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial.cc View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_editor_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M components/bookmarks.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
A + components/bookmarks/core/browser/bookmark_match.h View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -6 lines 0 comments Download
A components/bookmarks/core/browser/bookmark_match.cc View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
D components/bookmarks/core/browser/bookmark_title_match.h View 1 2 3 4 1 chunk +0 lines, -31 lines 0 comments Download
D components/bookmarks/core/browser/bookmark_title_match.cc View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M components/query_parser/query_parser.h View 1 2 3 4 5 3 chunks +15 lines, -7 lines 0 comments Download
M components/query_parser/query_parser.cc View 1 2 3 4 5 16 chunks +35 lines, -39 lines 0 comments Download

Messages

Total messages: 56 (0 generated)
Mark P
Peter, Can you glance at this and tell me what you think of the general ...
6 years, 9 months ago (2014-02-28 15:48:03 UTC) #1
Peter Kasting
What's the effect of using one index instead of two? I don't think I understand ...
6 years, 9 months ago (2014-02-28 22:18:56 UTC) #2
Mark P
On Fri, Feb 28, 2014 at 2:18 PM, <pkasting@chromium.org> wrote: > What's the effect of ...
6 years, 9 months ago (2014-02-28 23:19:47 UTC) #3
Peter Kasting
On 2014/02/28 23:19:47, Mark P wrote: > On Fri, Feb 28, 2014 at 2:18 PM, ...
6 years, 9 months ago (2014-02-28 23:22:10 UTC) #4
Mark P
This monster change, though it touches a ton of files, shouldn't be hard to review. ...
6 years, 8 months ago (2014-04-16 22:39:16 UTC) #5
Peter Kasting
Mostly nits, only the scoring (where URL matches still use the title length) is significant. ...
6 years, 8 months ago (2014-04-16 23:44:25 UTC) #6
Mark P
I've replied to all your comments. You may also notice a bunch of (non-functional) changes ...
6 years, 8 months ago (2014-04-17 20:24:17 UTC) #7
Peter Kasting
LGTM https://codereview.chromium.org/184663002/diff/50001/chrome/browser/autocomplete/bookmark_provider.cc File chrome/browser/autocomplete/bookmark_provider.cc (right): https://codereview.chromium.org/184663002/diff/50001/chrome/browser/autocomplete/bookmark_provider.cc#newcode166 chrome/browser/autocomplete/bookmark_provider.cc:166: std::vector<size_t> offsets = BookmarkMatch::OffsetsFromMatchPositions( On 2014/04/17 20:24:18, Mark ...
6 years, 8 months ago (2014-04-17 22:30:37 UTC) #8
Mark P
Have opinions on the two issues in my last e-mail on this thread? On Thu, ...
6 years, 8 months ago (2014-04-17 23:23:01 UTC) #9
Peter Kasting
On 2014/04/17 23:23:01, Mark P wrote: > Have opinions on the two issues in my ...
6 years, 8 months ago (2014-04-17 23:24:39 UTC) #10
tfarina
Mark, your suggestion sounds good to me. We can sort out the deps changes later. ...
6 years, 8 months ago (2014-04-18 00:26:04 UTC) #11
Mark P
Scott, can you please review this to whatever extent you desire. You're an owner of ...
6 years, 8 months ago (2014-04-18 14:52:42 UTC) #12
sky
I'll look at the rest of this shortly. https://codereview.chromium.org/184663002/diff/90001/chrome/browser/bookmarks/DEPS File chrome/browser/bookmarks/DEPS (right): https://codereview.chromium.org/184663002/diff/90001/chrome/browser/bookmarks/DEPS#newcode20 chrome/browser/bookmarks/DEPS:20: "!chrome/browser/omnibox/omnibox_field_trial.h", ...
6 years, 8 months ago (2014-04-18 16:40:02 UTC) #13
sky
https://codereview.chromium.org/184663002/diff/90001/chrome/browser/bookmarks/DEPS File chrome/browser/bookmarks/DEPS (right): https://codereview.chromium.org/184663002/diff/90001/chrome/browser/bookmarks/DEPS#newcode20 chrome/browser/bookmarks/DEPS:20: "!chrome/browser/omnibox/omnibox_field_trial.h", On 2014/04/18 16:40:02, sky wrote: > There is ...
6 years, 8 months ago (2014-04-18 16:52:20 UTC) #14
Mark P
https://codereview.chromium.org/184663002/diff/90001/chrome/browser/bookmarks/DEPS File chrome/browser/bookmarks/DEPS (right): https://codereview.chromium.org/184663002/diff/90001/chrome/browser/bookmarks/DEPS#newcode20 chrome/browser/bookmarks/DEPS:20: "!chrome/browser/omnibox/omnibox_field_trial.h", On 2014/04/18 16:52:20, sky wrote: > On 2014/04/18 ...
6 years, 8 months ago (2014-04-18 17:27:48 UTC) #15
sky
On Fri, Apr 18, 2014 at 10:27 AM, <mpearson@chromium.org> wrote: > > https://codereview.chromium.org/184663002/diff/90001/chrome/browser/bookmarks/DEPS > File ...
6 years, 8 months ago (2014-04-18 20:36:08 UTC) #16
Mark P
https://codereview.chromium.org/184663002/diff/90001/chrome/browser/bookmarks/DEPS File chrome/browser/bookmarks/DEPS (right): https://codereview.chromium.org/184663002/diff/90001/chrome/browser/bookmarks/DEPS#newcode20 chrome/browser/bookmarks/DEPS:20: "!chrome/browser/omnibox/omnibox_field_trial.h", On 2014/04/18 17:27:49, Mark P wrote: > On ...
6 years, 8 months ago (2014-04-18 21:28:08 UTC) #17
sky
I looked at the rest (not including autocomplete, as Peter did that) and only have ...
6 years, 8 months ago (2014-04-18 21:56:17 UTC) #18
Mark P
On Fri, Apr 18, 2014 at 2:56 PM, <sky@chromium.org> wrote: > I looked at the ...
6 years, 8 months ago (2014-04-18 22:22:07 UTC) #19
sky
LGTM then
6 years, 8 months ago (2014-04-18 22:30:37 UTC) #20
sky
Sorry, not LGTM, looks like you still need to inject the boolean.
6 years, 8 months ago (2014-04-18 22:31:02 UTC) #21
Mark P
On Fri, Apr 18, 2014 at 3:31 PM, <sky@chromium.org> wrote: > Sorry, not LGTM, looks ...
6 years, 8 months ago (2014-04-18 23:11:41 UTC) #22
sky
On Fri, Apr 18, 2014 at 4:11 PM, Mark Pearson <mpearson@chromium.org> wrote: > > On ...
6 years, 8 months ago (2014-04-21 15:28:40 UTC) #23
Mark P
Scott, I injected the boolean from BookmarkModelFactory as you requested. This simplified bookmark_index_unittest and bookmark_provider_unittest ...
6 years, 8 months ago (2014-04-21 21:33:53 UTC) #24
sky
LGTM https://codereview.chromium.org/184663002/diff/130001/chrome/browser/bookmarks/bookmark_index.h File chrome/browser/bookmarks/bookmark_index.h (right): https://codereview.chromium.org/184663002/diff/130001/chrome/browser/bookmarks/bookmark_index.h#newcode141 chrome/browser/bookmarks/bookmark_index.h:141: std::string languages_; nit: const. https://codereview.chromium.org/184663002/diff/130001/chrome/browser/bookmarks/bookmark_model.h File chrome/browser/bookmarks/bookmark_model.h (right): ...
6 years, 8 months ago (2014-04-21 23:09:01 UTC) #25
Mark P
https://codereview.chromium.org/184663002/diff/130001/chrome/browser/bookmarks/bookmark_index.h File chrome/browser/bookmarks/bookmark_index.h (right): https://codereview.chromium.org/184663002/diff/130001/chrome/browser/bookmarks/bookmark_index.h#newcode141 chrome/browser/bookmarks/bookmark_index.h:141: std::string languages_; On 2014/04/21 23:09:01, sky wrote: > nit: ...
6 years, 8 months ago (2014-04-21 23:41:35 UTC) #26
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 8 months ago (2014-04-21 23:42:00 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/184663002/150001
6 years, 8 months ago (2014-04-21 23:42:17 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 01:14:21 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-22 01:14:22 UTC) #30
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 8 months ago (2014-04-22 04:23:42 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/184663002/170001
6 years, 8 months ago (2014-04-22 04:24:24 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 05:45:37 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-22 05:45:38 UTC) #34
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 8 months ago (2014-04-22 14:08:39 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/184663002/170001
6 years, 8 months ago (2014-04-22 14:08:49 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 14:09:19 UTC) #37
commit-bot: I haz the power
Failed to apply patch for chrome/browser/autocomplete/bookmark_provider.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-22 14:09:19 UTC) #38
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 8 months ago (2014-04-22 15:05:20 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/184663002/190001
6 years, 8 months ago (2014-04-22 15:06:42 UTC) #40
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 18:04:38 UTC) #41
commit-bot: I haz the power
Failed to apply patch for chrome/browser/history/scored_history_match.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-22 18:04:39 UTC) #42
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 8 months ago (2014-04-22 18:32:28 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/184663002/210001
6 years, 8 months ago (2014-04-22 18:33:30 UTC) #44
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 21:16:42 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_x64_rel
6 years, 8 months ago (2014-04-22 21:16:43 UTC) #46
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 8 months ago (2014-04-22 21:34:44 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/184663002/210001
6 years, 8 months ago (2014-04-22 21:35:20 UTC) #48
Mark P
The CQ bit was unchecked by mpearson@chromium.org
6 years, 8 months ago (2014-04-22 23:44:56 UTC) #49
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 8 months ago (2014-04-22 23:50:09 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/184663002/230001
6 years, 8 months ago (2014-04-22 23:50:28 UTC) #51
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 23:55:00 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-22 23:55:01 UTC) #53
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 8 months ago (2014-04-23 02:39:36 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/184663002/230001
6 years, 8 months ago (2014-04-23 02:40:12 UTC) #55
commit-bot: I haz the power
6 years, 8 months ago (2014-04-23 04:28:11 UTC) #56
Message was sent while issue was closed.
Change committed as 265539

Powered by Google App Engine
This is Rietveld 408576698