Index: chrome/browser/extensions/api/bookmarks/bookmarks_api.cc |
diff --git a/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc b/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc |
index 126e618e2bc2c34d23630a7169cb2b159a6bf119..59c0c2cfb05fd2e5f02f605e3941294950573289 100644 |
--- a/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc |
+++ b/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc |
@@ -212,7 +212,8 @@ bool BookmarksFunction::CanBeModified(const BookmarkNode* node) { |
return false; |
} |
ChromeBookmarkClient* client = GetChromeBookmarkClient(); |
- if (client->IsDescendantOfManagedNode(node)) { |
+ if (::bookmarks::IsDescendantOf(node, client->managed_node()) || |
+ ::bookmarks::IsDescendantOf(node, client->supervised_node())) { |
error_ = keys::kModifyManagedError; |
return false; |
} |