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

Issue 302313005: Show the Managed Bookmarks folder in the views UI. (Closed)

Created:
6 years, 6 months ago by Joao da Silva
Modified:
6 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, dcheng, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Show the Managed Bookmarks folder in the views UI. This change makes the Managed Bookmarks folder visible in the bookmarks bar if it contains at least one bookmark: - this folder is always shown floating to the left, next to the Apps button; - this folder also appears in the bookmarks menu from the hotdog menu, as if it were part of the bookmarks bar; - bookmarks can't be dragged into this folder or any of its subfolders; - dragging bookmarks out of this folder always creates a new copy and never moves (the mouse cursor is decorated with the + "copy" indicator); - the bookmark editor can't select managed folders for new bookmarks; - bookmarks a page that already has a managed bookmarks creates a new bookmark instead. BUG=49598 R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275676

Patch Set 1 #

Patch Set 2 : rebased on model changes #

Total comments: 20

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : added more tests, addressed comments #

Patch Set 6 : rebased on components changes CL #

Total comments: 7

Patch Set 7 : Fixed nits #

Patch Set 8 : rebase #

Patch Set 9 : fix crash in tests #

Patch Set 10 : fix mac browser_Tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -70 lines) Patch
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_drag_drop.h View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_drag_drop.cc View 1 2 3 4 3 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/view_id_util_browsertest.mm View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/view_ids.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.h View 1 5 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 5 6 7 8 26 chunks +116 lines, -38 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_drag_drop_views.cc View 1 2 3 4 7 chunks +32 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc View 1 2 3 4 5 6 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc View 1 6 chunks +36 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Joao da Silva
Hey Scott, here's an initial implementation of the managed bookmarks folder based on your feedback ...
6 years, 6 months ago (2014-06-02 21:06:09 UTC) #1
sky
I'm going to wait until we resolve the other patch before reviewing this. -Scott On ...
6 years, 6 months ago (2014-06-02 23:09:28 UTC) #2
Joao da Silva
Scott, this CL is ready for review and should be the last big change for ...
6 years, 6 months ago (2014-06-05 23:04:51 UTC) #3
sky
Oy, this is a mega patch. Can you please split it into at least two ...
6 years, 6 months ago (2014-06-05 23:46:48 UTC) #4
sky
One more https://codereview.chromium.org/302313005/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_drag_drop_views.cc File chrome/browser/ui/views/bookmarks/bookmark_drag_drop_views.cc (right): https://codereview.chromium.org/302313005/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_drag_drop_views.cc#newcode66 chrome/browser/ui/views/bookmarks/bookmark_drag_drop_views.cc:66: !model->client()->CanBeEditedByUser(node)) { Can we fold the pref ...
6 years, 6 months ago (2014-06-05 23:58:48 UTC) #5
Joao da Silva
The changes to the model and the helpers in components/bookmarks/ have been split into https://codereview.chromium.org/317333004. ...
6 years, 6 months ago (2014-06-06 15:41:03 UTC) #6
sky
LGTM https://codereview.chromium.org/302313005/diff/100001/chrome/browser/ui/bookmarks/bookmark_drag_drop.h File chrome/browser/ui/bookmarks/bookmark_drag_drop.h (right): https://codereview.chromium.org/302313005/diff/100001/chrome/browser/ui/bookmarks/bookmark_drag_drop.h#newcode33 chrome/browser/ui/bookmarks/bookmark_drag_drop.h:33: bool copy); How about making this take a ...
6 years, 6 months ago (2014-06-06 19:34:04 UTC) #7
Joao da Silva
https://codereview.chromium.org/302313005/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/302313005/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode541 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:541: // Check the buttons first. On 2014/06/06 19:34:04, sky ...
6 years, 6 months ago (2014-06-06 20:06:12 UTC) #8
Joao da Silva
The CQ bit was checked by joaodasilva@chromium.org
6 years, 6 months ago (2014-06-06 21:15:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/302313005/140001
6 years, 6 months ago (2014-06-06 21:17:10 UTC) #10
Joao da Silva
The CQ bit was checked by joaodasilva@chromium.org
6 years, 6 months ago (2014-06-06 22:54:47 UTC) #11
Joao da Silva
Scott, FYI turns out that there are indeed tests that enter the BookmarkBarView with a ...
6 years, 6 months ago (2014-06-06 22:56:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/302313005/160001
6 years, 6 months ago (2014-06-06 22:57:13 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-07 03:24:33 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-07 06:32:53 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/36728)
6 years, 6 months ago (2014-06-07 06:32:55 UTC) #16
Joao da Silva
6 years, 6 months ago (2014-06-07 10:45:28 UTC) #17
Message was sent while issue was closed.
Committed patchset #10 manually as r275676 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698