Index: chrome/browser/resources/bookmark_manager/main.html |
diff --git a/chrome/browser/resources/bookmark_manager/main.html b/chrome/browser/resources/bookmark_manager/main.html |
index 06d966731b249fd94be48bdaadb3ed436bb337ef..777823b5aa44d9963feb02926dbd86208a38e4ac 100644 |
--- a/chrome/browser/resources/bookmark_manager/main.html |
+++ b/chrome/browser/resources/bookmark_manager/main.html |
@@ -1448,13 +1448,15 @@ function openBookmarks(kind) { |
var urls = []; |
- // Adds the node and all the descendants |
+ // Adds the node and all its children. |
function addNodes(node) { |
- var it = new bmm.TreeIterator(node); |
- while (it.moveNext()) { |
- var n = it.current; |
- if (!bmm.isFolder(n)) |
- urls.push(n.url); |
+ if (node.children) { |
+ node.children.forEach(function(child) { |
+ if (!bmm.isFolder(child)) |
+ urls.push(child.url); |
+ }); |
+ } else { |
+ urls.push(node.url); |
} |
} |