summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/extension_bookmarks_module.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc
index f06a19e..4bef0f2 100644
--- a/chrome/browser/extensions/extension_bookmarks_module.cc
+++ b/chrome/browser/extensions/extension_bookmarks_module.cc
@@ -52,7 +52,7 @@ class ExtensionBookmarks {
floor(node->date_added().ToDoubleT() * 1000));
}
- if (recurse) {
+ if (recurse && node->is_folder()) {
int childCount = node->GetChildCount();
ListValue* children = new ListValue();
for (int i = 0; i < childCount; ++i) {
@@ -60,8 +60,7 @@ class ExtensionBookmarks {
DictionaryValue* dict = GetNodeDictionary(child, true);
children->Append(dict);
}
- if (node->is_folder())
- dict->Set(keys::kChildrenKey, children);
+ dict->Set(keys::kChildrenKey, children);
}
return dict;
}