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

Issue 305973004: BookmarkClient can add extra nodes to BookmarkModel. (Closed)

Created:
6 years, 6 months ago by Joao da Silva
Modified:
6 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, haitaol+watch_chromium.org, tfarina, maniscalco+watch_chromium.org, browser-components-watch_chromium.org, tim+watch_chromium.org
Visibility:
Public.

Description

BookmarkClient can add extra nodes to BookmarkModel. This change extends the BookmarkModel to optionally load additional root nodes from the BookmarkClient. The BookmarClient interface has also been expanded to make additional checks on those nodes. BUG=49598 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275156

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 16

Patch Set 3 : addressed comments, fixed android build #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : Added support for extra nodes from the client #

Total comments: 8

Patch Set 7 : Address comments, only include changes to bookmarks component #

Patch Set 8 : cleanups #

Total comments: 4

Patch Set 9 : renamed methods #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -48 lines) Patch
M chrome/browser/bookmarks/bookmark_model_factory.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_model_factory.cc View 1 2 3 4 5 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client.cc View 1 2 3 4 5 6 7 8 3 chunks +40 lines, -9 lines 0 comments Download
M components/bookmarks/browser/bookmark_client.h View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -2 lines 0 comments Download
M components/bookmarks/browser/bookmark_expanded_state_tracker_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/bookmarks/browser/bookmark_model.h View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M components/bookmarks/browser/bookmark_model.cc View 1 2 3 4 5 6 7 8 11 chunks +31 lines, -14 lines 0 comments Download
M components/bookmarks/browser/bookmark_storage.h View 1 2 3 4 5 5 chunks +21 lines, -0 lines 0 comments Download
M components/bookmarks/browser/bookmark_storage.cc View 1 2 3 4 5 4 chunks +32 lines, -6 lines 0 comments Download
M components/bookmarks/test/test_bookmark_client.h View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -3 lines 0 comments Download
M components/bookmarks/test/test_bookmark_client.cc View 1 2 3 4 5 6 7 8 2 chunks +68 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Joao da Silva
Please have a look: @sky: bookmarks changes @nyquist: android changes @atwilson: sync changes Thanks!
6 years, 6 months ago (2014-05-30 20:26:11 UTC) #1
sky
I didn't make it all the way through this. I have to think on this ...
6 years, 6 months ago (2014-05-30 22:31:36 UTC) #2
Joao da Silva
Addressed the first round of comments and fixed the android build. Scott, what part of ...
6 years, 6 months ago (2014-06-01 13:32:07 UTC) #3
sky
On Sun, Jun 1, 2014 at 6:32 AM, <joaodasilva@chromium.org> wrote: > Addressed the first round ...
6 years, 6 months ago (2014-06-02 23:08:40 UTC) #4
Joao da Silva
Scott, can you have a first look at this? The BookmarkModel can now append additional ...
6 years, 6 months ago (2014-06-04 17:05:23 UTC) #5
sky
Nice! this is what I was thinking of. I would prefer splitting this up. Should ...
6 years, 6 months ago (2014-06-04 20:39:51 UTC) #6
Joao da Silva
Cool, I've updated this issue to just make the bookmarks changes & addressed the pending ...
6 years, 6 months ago (2014-06-04 22:35:57 UTC) #7
sky
LGTM with a couple of name changes. https://codereview.chromium.org/305973004/diff/120001/components/bookmarks/browser/bookmark_model.cc File components/bookmarks/browser/bookmark_model.cc (right): https://codereview.chromium.org/305973004/diff/120001/components/bookmarks/browser/bookmark_model.cc#newcode216 components/bookmarks/browser/bookmark_model.cc:216: if (!client_->CanRemoveNode(permanent_node)) ...
6 years, 6 months ago (2014-06-04 23:19:07 UTC) #8
Joao da Silva
https://codereview.chromium.org/305973004/diff/120001/components/bookmarks/browser/bookmark_model.cc File components/bookmarks/browser/bookmark_model.cc (right): https://codereview.chromium.org/305973004/diff/120001/components/bookmarks/browser/bookmark_model.cc#newcode216 components/bookmarks/browser/bookmark_model.cc:216: if (!client_->CanRemoveNode(permanent_node)) On 2014/06/04 23:19:07, sky wrote: > The ...
6 years, 6 months ago (2014-06-05 12:14:53 UTC) #9
Joao da Silva
The CQ bit was checked by joaodasilva@chromium.org
6 years, 6 months ago (2014-06-05 12:14:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/305973004/140001
6 years, 6 months ago (2014-06-05 12:15:55 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-05 16:36:26 UTC) #12
Message was sent while issue was closed.
Change committed as 275156

Powered by Google App Engine
This is Rietveld 408576698