Index: chrome/browser/bookmarks/recently_used_folders_combo_model.cc |
diff --git a/chrome/browser/bookmarks/recently_used_folders_combo_model.cc b/chrome/browser/bookmarks/recently_used_folders_combo_model.cc |
index 3bc18e2fefbf1dd8ada83db076acfbd199e01da3..0bc1b7db683c27690824c523e01a71c953830ad5 100644 |
--- a/chrome/browser/bookmarks/recently_used_folders_combo_model.cc |
+++ b/chrome/browser/bookmarks/recently_used_folders_combo_model.cc |
@@ -26,12 +26,12 @@ RecentlyUsedFoldersComboModel::RecentlyUsedFoldersComboModel( |
// We special case the placement of these, so remove them from the list, then |
// fix up the order. |
RemoveNode(model->GetBookmarkBarNode()); |
+ RemoveNode(model->synced_node()); |
RemoveNode(model->other_node()); |
RemoveNode(node->parent()); |
// Make the parent the first item, unless it's the bookmark bar or other node. |
- if (node->parent() != model->GetBookmarkBarNode() && |
- node->parent() != model->other_node()) { |
+ if (!model->is_permanent_node(node)) { |
nodes_.insert(nodes_.begin(), node->parent()); |
} |
@@ -42,6 +42,9 @@ RecentlyUsedFoldersComboModel::RecentlyUsedFoldersComboModel( |
// And put the bookmark bar and other nodes at the end of the list. |
nodes_.push_back(model->GetBookmarkBarNode()); |
nodes_.push_back(model->other_node()); |
+ if (model->synced_node()->IsVisible()) { |
+ nodes_.push_back(model->synced_node()); |
+ } |
std::vector<const BookmarkNode*>::iterator it = std::find(nodes_.begin(), |
nodes_.end(), |