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

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

Issue 769153007: Managed bookmarks for supervised users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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/bookmark_api_helpers.cc
diff --git a/chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.cc b/chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.cc
index 2f5a9086bd4b0d1f19c6812436403e3e6f4b99e2..87ff7f7319698b31aa533c005c758f91c1cd2bda 100644
--- a/chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.cc
+++ b/chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.cc
@@ -73,7 +73,7 @@ BookmarkTreeNode* GetBookmarkTreeNode(ChromeBookmarkClient* client,
new double(floor(node->date_added().ToDoubleT() * 1000)));
}
- if (client->IsDescendantOfManagedNode(node))
+ if (client->IsDescendantOfManagedOrSupervisedNode(node))
bookmark_tree_node->unmodifiable = BookmarkTreeNode::UNMODIFIABLE_MANAGED;
if (recurse && node->is_folder()) {
@@ -120,7 +120,7 @@ bool RemoveNode(BookmarkModel* model,
*error = keys::kModifySpecialError;
return false;
}
- if (client->IsDescendantOfManagedNode(node)) {
+ if (client->IsDescendantOfManagedOrSupervisedNode(node)) {
*error = keys::kModifyManagedError;
return false;
}

Powered by Google App Engine
This is Rietveld 408576698