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

Unified Diff: chrome/browser/extensions/api/bookmarks/bookmarks_api.cc

Issue 769153007: Managed bookmarks for supervised users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build (Android & unit_tests) Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698