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

Issue 2583763003: Factor out AutocompleteMatch creation from BookmarkProvider (Closed)

Created:
4 years ago by mattreynolds
Modified:
3 years, 11 months ago
Reviewers:
Mark P, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Factor out AutocompleteMatch creation from BookmarkProvider Move the logic for converting from TitledUrlMatch items to AutocompleteMatch items out of BookmarkProvider into places where it can be shared with other AutocompleteProviders. BUG=630769

Patch Set 1 #

Total comments: 4

Patch Set 2 : unit tests #

Patch Set 3 : add unit test #

Total comments: 49

Patch Set 4 : document TitledUrlIndex constructor #

Patch Set 5 : changes for mpearson@ #

Total comments: 4

Patch Set 6 : fix nits #

Patch Set 7 : move CorrectTitleAndMatchPositions to components/omnibox/browser #

Patch Set 8 : re-add unittest #

Total comments: 5

Patch Set 9 : TEST_F -> TEST #

Total comments: 6

Patch Set 10 : copyright years, bookmarks namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+463 lines, -154 lines) Patch
M components/bookmarks/browser/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/bookmarks/browser/titled_url_index.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A components/bookmarks/browser/titled_url_match_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +61 lines, -0 lines 0 comments Download
M components/omnibox/browser/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M components/omnibox/browser/bookmark_provider.h View 1 2 3 4 2 chunks +3 lines, -20 lines 0 comments Download
M components/omnibox/browser/bookmark_provider.cc View 1 2 3 4 5 chunks +22 lines, -132 lines 0 comments Download
M components/omnibox/browser/bookmark_provider_unittest.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
A components/omnibox/browser/titled_url_match_utils.h View 1 2 3 4 5 6 7 8 9 1 chunk +42 lines, -0 lines 0 comments Download
A components/omnibox/browser/titled_url_match_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +138 lines, -0 lines 0 comments Download
A components/omnibox/browser/titled_url_match_utils_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +185 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (6 generated)
mattreynolds
sky@chromium.org: Please review changes in components/bookmarks mpearson@chromium.org: Please review changes in components/omnibox
4 years ago (2016-12-16 19:18:38 UTC) #2
sky
How about test coverage? https://codereview.chromium.org/2583763003/diff/1/components/bookmarks/browser/titled_url_match.cc File components/bookmarks/browser/titled_url_match.cc (right): https://codereview.chromium.org/2583763003/diff/1/components/bookmarks/browser/titled_url_match.cc#newcode57 components/bookmarks/browser/titled_url_match.cc:57: if (leading_whitespace_chars == 0) { ...
4 years ago (2016-12-16 19:32:54 UTC) #3
mattreynolds
Added unit tests for autocomplete_provider_utils and titled_url_match https://codereview.chromium.org/2583763003/diff/1/components/bookmarks/browser/titled_url_match.cc File components/bookmarks/browser/titled_url_match.cc (right): https://codereview.chromium.org/2583763003/diff/1/components/bookmarks/browser/titled_url_match.cc#newcode57 components/bookmarks/browser/titled_url_match.cc:57: if (leading_whitespace_chars ...
4 years ago (2016-12-19 20:09:15 UTC) #4
Mark P
Apologies for the delay; I've been overwhelmed with metrics things this week. I will get ...
4 years ago (2016-12-21 00:10:37 UTC) #5
mattreynolds
On 2016/12/21 00:10:37, Mark P wrote: > Apologies for the delay; I've been overwhelmed with ...
4 years ago (2016-12-21 01:00:37 UTC) #6
Mark P
preliminary comment after looking at the .h files --mark https://codereview.chromium.org/2583763003/diff/40001/components/omnibox/browser/autocomplete_provider_utils.h File components/omnibox/browser/autocomplete_provider_utils.h (right): https://codereview.chromium.org/2583763003/diff/40001/components/omnibox/browser/autocomplete_provider_utils.h#newcode1 components/omnibox/browser/autocomplete_provider_utils.h:1: ...
4 years ago (2016-12-22 05:24:31 UTC) #7
Mark P
I reviewed the rest of the changelist and have an assortment or trivial comments. The ...
3 years, 12 months ago (2016-12-23 22:38:50 UTC) #8
mattreynolds
https://codereview.chromium.org/2583763003/diff/40001/components/bookmarks/browser/titled_url_match.h File components/bookmarks/browser/titled_url_match.h (right): https://codereview.chromium.org/2583763003/diff/40001/components/bookmarks/browser/titled_url_match.h#newcode45 components/bookmarks/browser/titled_url_match.h:45: base::string16* title, MatchPositions* title_match_positions); On 2016/12/23 22:38:49, Mark P ...
3 years, 11 months ago (2017-01-04 00:58:03 UTC) #9
Mark P
lgtm modulo tiny comments I only reviewed the changes you made in response to my ...
3 years, 11 months ago (2017-01-05 20:56:02 UTC) #10
mattreynolds
Thanks Mark!
3 years, 11 months ago (2017-01-05 21:21:07 UTC) #11
mattreynolds
https://codereview.chromium.org/2583763003/diff/80001/components/omnibox/browser/titled_url_match_utils.cc File components/omnibox/browser/titled_url_match_utils.cc (right): https://codereview.chromium.org/2583763003/diff/80001/components/omnibox/browser/titled_url_match_utils.cc#newcode14 components/omnibox/browser/titled_url_match_utils.cc:14: namespace bookmarks { On 2017/01/05 20:56:02, Mark P wrote: ...
3 years, 11 months ago (2017-01-05 21:21:38 UTC) #12
sky
Are you doing this because you need to use CorrectTitleAndMatchPositions from places other than components/omnibox/browser ...
3 years, 11 months ago (2017-01-05 23:13:49 UTC) #13
mattreynolds
On 2017/01/05 23:13:49, sky wrote: > Are you doing this because you need to use ...
3 years, 11 months ago (2017-01-05 23:21:29 UTC) #14
sky
Couldn't you keep the function in components/omnibox/browser then? Why move to components/bookmarks when it isn't ...
3 years, 11 months ago (2017-01-05 23:37:59 UTC) #15
mattreynolds
On 2017/01/05 23:37:59, sky wrote: > Couldn't you keep the function in components/omnibox/browser then? Why ...
3 years, 11 months ago (2017-01-06 00:09:28 UTC) #16
sky
Shouldn't the unit test move too?
3 years, 11 months ago (2017-01-06 00:16:18 UTC) #17
Mark P
On 2017/01/06 00:09:28, mattreynolds wrote: > On 2017/01/05 23:37:59, sky wrote: > > Couldn't you ...
3 years, 11 months ago (2017-01-06 00:19:17 UTC) #18
Mark P
On 2017/01/06 00:19:17, Mark P wrote: > On 2017/01/06 00:09:28, mattreynolds wrote: > > On ...
3 years, 11 months ago (2017-01-06 00:20:10 UTC) #19
Mark P
On 2017/01/06 00:20:10, Mark P wrote: > On 2017/01/06 00:19:17, Mark P wrote: > > ...
3 years, 11 months ago (2017-01-06 00:20:36 UTC) #20
mattreynolds
On 2017/01/06 00:20:36, Mark P wrote: > On 2017/01/06 00:20:10, Mark P wrote: > > ...
3 years, 11 months ago (2017-01-06 00:47:33 UTC) #21
sky
https://codereview.chromium.org/2583763003/diff/140001/components/bookmarks/browser/titled_url_match_unittest.cc File components/bookmarks/browser/titled_url_match_unittest.cc (right): https://codereview.chromium.org/2583763003/diff/140001/components/bookmarks/browser/titled_url_match_unittest.cc#newcode1 components/bookmarks/browser/titled_url_match_unittest.cc:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 11 months ago (2017-01-06 00:54:43 UTC) #22
mattreynolds
https://codereview.chromium.org/2583763003/diff/140001/components/bookmarks/browser/titled_url_match_unittest.cc File components/bookmarks/browser/titled_url_match_unittest.cc (right): https://codereview.chromium.org/2583763003/diff/140001/components/bookmarks/browser/titled_url_match_unittest.cc#newcode1 components/bookmarks/browser/titled_url_match_unittest.cc:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 11 months ago (2017-01-06 01:13:44 UTC) #23
Mark P
still lgtm modulo minor comments --mark https://codereview.chromium.org/2583763003/diff/140001/components/bookmarks/browser/titled_url_match_unittest.cc File components/bookmarks/browser/titled_url_match_unittest.cc (right): https://codereview.chromium.org/2583763003/diff/140001/components/bookmarks/browser/titled_url_match_unittest.cc#newcode14 components/bookmarks/browser/titled_url_match_unittest.cc:14: class TitledUrlMatchTest : ...
3 years, 11 months ago (2017-01-06 06:06:10 UTC) #24
sky
LGTM https://codereview.chromium.org/2583763003/diff/160001/components/bookmarks/browser/titled_url_match_unittest.cc File components/bookmarks/browser/titled_url_match_unittest.cc (right): https://codereview.chromium.org/2583763003/diff/160001/components/bookmarks/browser/titled_url_match_unittest.cc#newcode11 components/bookmarks/browser/titled_url_match_unittest.cc:11: using bookmarks::TitledUrlMatch; Put this code in the bookmarks ...
3 years, 11 months ago (2017-01-06 16:32:54 UTC) #25
mattreynolds
Thanks Mark and Scott! https://codereview.chromium.org/2583763003/diff/160001/components/bookmarks/browser/titled_url_match_unittest.cc File components/bookmarks/browser/titled_url_match_unittest.cc (right): https://codereview.chromium.org/2583763003/diff/160001/components/bookmarks/browser/titled_url_match_unittest.cc#newcode1 components/bookmarks/browser/titled_url_match_unittest.cc:1: // Copyright 2017 The Chromium ...
3 years, 11 months ago (2017-01-06 18:03:50 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2583763003/180001
3 years, 11 months ago (2017-01-06 18:04:35 UTC) #29
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 11 months ago (2017-01-06 19:38:43 UTC) #32
mattreynolds
3 years, 11 months ago (2017-01-06 19:49:48 UTC) #34
Message was sent while issue was closed.
On 2017/01/06 19:38:43, commit-bot: I haz the power wrote:
> Prior attempt to commit was detected, but we were not able to check whether
the
> issue was successfully committed. Please check Git history manually and
re-check
> CQ or close this issue as needed.

Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/80dc1ec706e972f489543a202f9e...

Bleep bloop, I'm a bot.

Powered by Google App Engine
This is Rietveld 408576698