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

Issue 317333004: Added BookmarkClient::CanBeEditedByUser. (Closed)

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

Description

Added BookmarkClient::CanBeEditedByUser. CanBeEditedByUser indicates if a bookmark can be edited by the user or not. All of the bookmarks in the bookmark_bar_node, the other_node and the mobile_node are always editable but some of the extra nodes provided by the client may be unmodifiable. Also updated other methods to work only with user-editable nodes, and added utility helpers to detect nodes that can or can't be edited. BUG=49598 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275523

Patch Set 1 #

Patch Set 2 : reupload #

Patch Set 3 : cleanups #

Patch Set 4 : rebase #

Total comments: 14

Patch Set 5 : addressed remaining issues #

Patch Set 6 : added TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -99 lines) Patch
M chrome/browser/android/provider/chrome_browser_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client.cc View 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc View 4 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/ui/bookmarks/recently_used_folders_combo_model.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/bookmarks/browser/bookmark_client.h View 1 2 3 4 5 1 chunk +7 lines, -8 lines 0 comments Download
M components/bookmarks/browser/bookmark_model.h View 1 2 3 4 2 chunks +7 lines, -6 lines 0 comments Download
M components/bookmarks/browser/bookmark_model.cc View 5 chunks +13 lines, -9 lines 0 comments Download
M components/bookmarks/browser/bookmark_model_observer.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M components/bookmarks/browser/bookmark_model_unittest.cc View 1 2 3 4 13 chunks +84 lines, -13 lines 0 comments Download
M components/bookmarks/browser/bookmark_utils.h View 1 2 3 4 4 chunks +14 lines, -4 lines 0 comments Download
M components/bookmarks/browser/bookmark_utils.cc View 1 2 3 4 7 chunks +30 lines, -11 lines 0 comments Download
M components/bookmarks/browser/bookmark_utils_unittest.cc View 4 chunks +67 lines, -3 lines 0 comments Download
M components/bookmarks/test/test_bookmark_client.h View 2 chunks +2 lines, -5 lines 0 comments Download
M components/bookmarks/test/test_bookmark_client.cc View 3 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Joao da Silva
These are the component/bookmarks/ changes from https://codereview.chromium.org/302313005, after adderssing your initial comments. Should be easier ...
6 years, 6 months ago (2014-06-06 15:27:34 UTC) #1
sky
LGTM One quirk with what you've added is that the model still lets users edit ...
6 years, 6 months ago (2014-06-06 16:29:47 UTC) #2
Joao da Silva
That's a great idea, to check CanBeEditedByUser more aggressively. I also worried that other code ...
6 years, 6 months ago (2014-06-06 17:46:40 UTC) #3
Joao da Silva
The CQ bit was checked by joaodasilva@chromium.org
6 years, 6 months ago (2014-06-06 17:46:46 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/317333004/100001
6 years, 6 months ago (2014-06-06 17:47:35 UTC) #5
commit-bot: I haz the power
Change committed as 275523
6 years, 6 months ago (2014-06-06 21:10:25 UTC) #6
Kibeom Kim (inactive)
A revert of this CL has been created in https://codereview.chromium.org/312093007/ by kkimlabs@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-06 22:27:24 UTC) #7
Joao da Silva
6 years, 6 months ago (2014-06-06 22:41:21 UTC) #8
Message was sent while issue was closed.
Kibeom has landed a different fix at
https://chrome-internal-review.googlesource.com/165381 so that this doesn't need
to be reverted.

Meanwhile I'm working on the Android CL for this feature too.

Thanks for holding the revert & getting the fix quickly landing :-)

Powered by Google App Engine
This is Rietveld 408576698