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

Issue 26894002: Experimental bookmark model based on tags. (Closed)

Created:
7 years, 2 months ago by noyau (Ping after 24h)
Modified:
7 years, 2 months ago
Reviewers:
rlarocque, Yaron, sky, lpromero-g
CC:
chromium-reviews, tfarina, browser-components-watch_chromium.org, Mike Wittman
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Experimental bookmark model based on tags. This CL introduces a BookmarTagModel class. BookmarTagModel provides a way to access and manipulate bookmarks in a non-hierarchical way. BookmarkTagModel view the bookmarks as a flat list, and each one can be marked with a collection of tags (tags are simply strings). BookmarkTagModel converts on demand the data from an existing BookmarkModel to its view of the world by considering all the titles of all the ancestors as tags. This view is frozen on an individual bookmarks when the BookmarkTagModel performs a change on the tags of this bookmarks. The Bookmark's meta info is used for storage. An observer may be attached to a BookmarkTagModel to observe relevant events. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229104

Patch Set 1 #

Total comments: 16

Patch Set 2 : Fix memory leak and Android build failures. #

Patch Set 3 : Remove pragmas: Win compiler doesn't like them. #

Patch Set 4 : s/tab/tag #

Total comments: 58

Patch Set 5 : Feedback. #

Patch Set 6 : Adding TODOs. #

Patch Set 7 : Fixing trybot failures. #

Total comments: 10

Patch Set 8 : More fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1436 lines, -0 lines) Patch
chrome/browser/bookmarks/bookmark_model.cc View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
chrome/browser/bookmarks/bookmark_model_observer.h View 1 chunk +8 lines, -0 lines 0 comments Download
chrome/browser/bookmarks/bookmark_tag_model.h View 1 2 3 4 5 6 7 1 chunk +214 lines, -0 lines 0 comments Download
chrome/browser/bookmarks/bookmark_tag_model.cc View 1 2 3 4 5 6 7 1 chunk +553 lines, -0 lines 0 comments Download
chrome/browser/bookmarks/bookmark_tag_model_observer.h View 1 2 3 4 1 chunk +76 lines, -0 lines 0 comments Download
chrome/browser/bookmarks/bookmark_tag_model_unittest.cc View 1 2 3 4 5 6 7 1 chunk +566 lines, -0 lines 0 comments Download
chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Yaron
Probably should add sky (bookmarks) and rlarocque (bookmarks sync) for comments on approach https://codereview.chromium.org/26894002/diff/1/chrome/browser/bookmarks/bookmark_tag_model.cc File ...
7 years, 2 months ago (2013-10-11 10:50:41 UTC) #1
noyau (Ping after 24h)
General bot fixing, plus Yaron feedback. https://codereview.chromium.org/26894002/diff/1/chrome/browser/bookmarks/bookmark_tag_model.cc File chrome/browser/bookmarks/bookmark_tag_model.cc (right): https://codereview.chromium.org/26894002/diff/1/chrome/browser/bookmarks/bookmark_tag_model.cc#newcode55 chrome/browser/bookmarks/bookmark_tag_model.cc:55: if (bookmark_model_) On ...
7 years, 2 months ago (2013-10-11 12:09:21 UTC) #2
tfarina
On Fri, Oct 11, 2013 at 9:09 AM, <noyau@chromium.org> wrote: > Reviewers: Yaron, > > ...
7 years, 2 months ago (2013-10-11 12:48:34 UTC) #3
noyau (Ping after 24h)
On 2013/10/11 12:48:34, tfarina wrote: > You wrote TabModel all over the CL description when ...
7 years, 2 months ago (2013-10-11 13:04:16 UTC) #4
noyau (Ping after 24h)
+sky, +rlarocque Sky for the general approach, rlarocque for the viability of syncing the bookmark ...
7 years, 2 months ago (2013-10-11 13:08:14 UTC) #5
sky
One question before I review. Is it possible to do all this in an extension ...
7 years, 2 months ago (2013-10-11 16:28:17 UTC) #6
tfarina
On Fri, Oct 11, 2013 at 1:28 PM, <sky@chromium.org> wrote: > One question before I ...
7 years, 2 months ago (2013-10-11 16:34:24 UTC) #7
noyau (Ping after 24h)
On 2013/10/11 16:28:17, sky wrote: > One question before I review. Is it possible to ...
7 years, 2 months ago (2013-10-11 16:40:20 UTC) #8
rlarocque
From the sync point of view, your model looks pretty good. I like the idea ...
7 years, 2 months ago (2013-10-11 18:06:24 UTC) #9
sky
Can you only build this on the platforms we care about now? https://codereview.chromium.org/26894002/diff/64001/chrome/browser/bookmarks/bookmark_model.cc File chrome/browser/bookmarks/bookmark_model.cc ...
7 years, 2 months ago (2013-10-11 21:57:40 UTC) #10
lpromero-g
https://codereview.chromium.org/26894002/diff/64001/chrome/browser/bookmarks/bookmark_tag_model.h File chrome/browser/bookmarks/bookmark_tag_model.h (right): https://codereview.chromium.org/26894002/diff/64001/chrome/browser/bookmarks/bookmark_tag_model.h#newcode1 chrome/browser/bookmarks/bookmark_tag_model.h:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 2 months ago (2013-10-14 09:18:17 UTC) #11
noyau (Ping after 24h)
Thanks for the reviews. PTAL. I've used my flying time to add the requested tests ...
7 years, 2 months ago (2013-10-14 23:59:39 UTC) #12
sky
On Mon, Oct 14, 2013 at 4:59 PM, <noyau@chromium.org> wrote: > Thanks for the reviews. ...
7 years, 2 months ago (2013-10-15 00:27:38 UTC) #13
Yaron
sky: Our desire is to experiment simultaneously on both desktop and mobile and the mobile ...
7 years, 2 months ago (2013-10-15 02:27:32 UTC) #14
noyau (Ping after 24h)
Added the requested TODOs.
7 years, 2 months ago (2013-10-15 23:57:20 UTC) #15
sky
https://codereview.chromium.org/26894002/diff/146001/chrome/browser/bookmarks/bookmark_tag_model.cc File chrome/browser/bookmarks/bookmark_tag_model.cc (right): https://codereview.chromium.org/26894002/diff/146001/chrome/browser/bookmarks/bookmark_tag_model.cc#newcode39 chrome/browser/bookmarks/bookmark_tag_model.cc:39: const BookmarkNode* bookmark) { nit: seems like you can ...
7 years, 2 months ago (2013-10-16 13:46:19 UTC) #16
noyau (Ping after 24h)
PTAL. https://codereview.chromium.org/26894002/diff/146001/chrome/browser/bookmarks/bookmark_tag_model.cc File chrome/browser/bookmarks/bookmark_tag_model.cc (right): https://codereview.chromium.org/26894002/diff/146001/chrome/browser/bookmarks/bookmark_tag_model.cc#newcode39 chrome/browser/bookmarks/bookmark_tag_model.cc:39: const BookmarkNode* bookmark) { On 2013/10/16 13:46:19, sky ...
7 years, 2 months ago (2013-10-16 16:51:30 UTC) #17
sky
LGTM
7 years, 2 months ago (2013-10-16 20:03:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noyau@chromium.org/26894002/167001
7 years, 2 months ago (2013-10-16 20:25:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noyau@chromium.org/26894002/167001
7 years, 2 months ago (2013-10-16 20:46:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noyau@chromium.org/26894002/167001
7 years, 2 months ago (2013-10-16 21:37:43 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noyau@chromium.org/26894002/167001
7 years, 2 months ago (2013-10-17 01:45:17 UTC) #22
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-17 04:46:58 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noyau@chromium.org/26894002/167001
7 years, 2 months ago (2013-10-17 06:39:56 UTC) #24
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-17 06:59:00 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noyau@chromium.org/26894002/167001
7 years, 2 months ago (2013-10-17 07:51:36 UTC) #26
commit-bot: I haz the power
7 years, 2 months ago (2013-10-17 12:29:42 UTC) #27
Message was sent while issue was closed.
Change committed as 229104

Powered by Google App Engine
This is Rietveld 408576698