Index: chrome/browser/extensions/extension_bookmarks_module.cc |
diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc |
index 1777e790c785fbc5cd0ab8468b347c3b5339a48c..6d9a5c190879489e19dfbca4bdcd01d78b8b6cc7 100644 |
--- a/chrome/browser/extensions/extension_bookmarks_module.cc |
+++ b/chrome/browser/extensions/extension_bookmarks_module.cc |
@@ -521,9 +521,7 @@ bool MoveBookmarkFunction::RunImpl() { |
error_ = keys::kNoNodeError; |
return false; |
} |
- if (node == model->root_node() || |
- node == model->other_node() || |
- node == model->GetBookmarkBarNode()) { |
+ if (model->is_permanent_node(node)) { |
error_ = keys::kModifySpecialError; |
return false; |
} |
@@ -615,9 +613,7 @@ bool UpdateBookmarkFunction::RunImpl() { |
error_ = keys::kNoNodeError; |
return false; |
} |
- if (node == model->root_node() || |
- node == model->other_node() || |
- node == model->GetBookmarkBarNode()) { |
+ if (model->is_permanent_node(node)) { |
error_ = keys::kModifySpecialError; |
return false; |
} |