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

Issue 2559633003: Factor out bookmark-specific sorting logic from BookmarkIndex (Closed)

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

Description

Factor out bookmark-specific sorting logic from BookmarkIndex BookmarkIndex contains logic for sorting bookmarks by the number of times the bookmark URL was typed into the omnibox. This change moves the logic out of BookmarkIndex. Instead, if a TitledUrlNodeSorter is supplied when the index is constructed then it will be used to sort the match results. BUG=630769 Committed: https://crrev.com/191b88720ff188f2aa3aac77265a1c3573e95f0e Cr-Commit-Position: refs/heads/master@{#438250}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 10

Patch Set 3 : comments, virtual destructor, explicit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -62 lines) Patch
M components/bookmarks/browser/BUILD.gn View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/bookmarks/browser/bookmark_index.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M components/bookmarks/browser/bookmark_index.cc View 1 3 chunks +5 lines, -58 lines 0 comments Download
M components/bookmarks/browser/bookmark_model.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
A components/bookmarks/browser/titled_url_node_sorter.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A components/bookmarks/browser/typed_count_sorter.h View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A components/bookmarks/browser/typed_count_sorter.cc View 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
mattreynolds
Hi Scott, PTAL
4 years ago (2016-12-12 19:32:54 UTC) #2
sky
https://codereview.chromium.org/2559633003/diff/20001/components/bookmarks/browser/titled_url_node_sorter.h File components/bookmarks/browser/titled_url_node_sorter.h (right): https://codereview.chromium.org/2559633003/diff/20001/components/bookmarks/browser/titled_url_node_sorter.h#newcode20 components/bookmarks/browser/titled_url_node_sorter.h:20: // Constructs |sorted_nodes| by sorting the nodes in |matches|. ...
4 years ago (2016-12-12 20:46:11 UTC) #3
mattreynolds
https://codereview.chromium.org/2559633003/diff/20001/components/bookmarks/browser/titled_url_node_sorter.h File components/bookmarks/browser/titled_url_node_sorter.h (right): https://codereview.chromium.org/2559633003/diff/20001/components/bookmarks/browser/titled_url_node_sorter.h#newcode20 components/bookmarks/browser/titled_url_node_sorter.h:20: // Constructs |sorted_nodes| by sorting the nodes in |matches|. ...
4 years ago (2016-12-12 22:09:14 UTC) #4
sky
LGTM
4 years ago (2016-12-12 23:22:20 UTC) #5
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/2559633003/40001
4 years ago (2016-12-12 23:49:52 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/287466) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years ago (2016-12-13 01:45:17 UTC) #9
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/2559633003/40001
4 years ago (2016-12-13 18:23:14 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-13 19:26:14 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-13 19:29:25 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/191b88720ff188f2aa3aac77265a1c3573e95f0e
Cr-Commit-Position: refs/heads/master@{#438250}

Powered by Google App Engine
This is Rietveld 408576698