summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/bookmarks/bookmark_model.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/bookmarks/bookmark_model.cc b/chrome/browser/bookmarks/bookmark_model.cc
index 6b3e368..6899c5b 100644
--- a/chrome/browser/bookmarks/bookmark_model.cc
+++ b/chrome/browser/bookmarks/bookmark_model.cc
@@ -223,6 +223,11 @@ void BookmarkModel::SetTitle(const BookmarkNode* node,
if (node->GetTitle() == title)
return;
+ if (node == bookmark_bar_node_ || node == other_node_) {
+ NOTREACHED();
+ return;
+ }
+
// The title index doesn't support changing the title, instead we remove then
// add it back.
index_->Remove(node);