Added BookmarkClient::CanBeEditedByUser.
commit23e39694ac1588775ef12182ce9a36e2e699265e
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 6 Jun 2014 21:10:13 +0000 (6 21:10 +0000)
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 6 Jun 2014 21:10:13 +0000 (6 21:10 +0000)
tree9d578797d7131ac854125b61fc4f9b6f95472bee
parent10cfeffb048f34ca898dd23780404e61e350c196
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

Review URL: https://codereview.chromium.org/317333004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275523 0039d316-1c4b-4281-b951-d872f2087c98
20 files changed:
chrome/browser/android/provider/chrome_browser_provider.cc
chrome/browser/bookmarks/chrome_bookmark_client.cc
chrome/browser/bookmarks/chrome_bookmark_client.h
chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc
chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc
chrome/browser/ui/bookmarks/recently_used_folders_combo_model.cc
chrome/browser/ui/cocoa/browser_window_controller.mm
chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc
components/bookmarks/browser/bookmark_client.h
components/bookmarks/browser/bookmark_model.cc
components/bookmarks/browser/bookmark_model.h
components/bookmarks/browser/bookmark_model_observer.h
components/bookmarks/browser/bookmark_model_unittest.cc
components/bookmarks/browser/bookmark_utils.cc
components/bookmarks/browser/bookmark_utils.h
components/bookmarks/browser/bookmark_utils_unittest.cc
components/bookmarks/test/test_bookmark_client.cc
components/bookmarks/test/test_bookmark_client.h