Index: chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc |
diff --git a/chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc b/chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc |
index 85b848306893b7927daac08b43e346e32c9374ae..189aee713b1a7944c3ff276856b9d8f875937de5 100644 |
--- a/chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc |
+++ b/chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc |
@@ -361,7 +361,7 @@ bool ClipboardBookmarkManagerFunction::CopyOrCut(bool cut, |
ChromeBookmarkClient* client = GetChromeBookmarkClient(); |
std::vector<const BookmarkNode*> nodes; |
EXTENSION_FUNCTION_VALIDATE(GetNodesFromVector(model, id_list, &nodes)); |
- if (cut && client->HasDescendantsOfManagedNode(nodes)) { |
+ if (cut && bookmarks::HasDescendantsOf(nodes, client->managed_node())) { |
error_ = bookmark_keys::kModifyManagedError; |
return false; |
} |