summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/extensions/extension_bookmarks_module.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc
index f0acba9..3ebe811 100644
--- a/chrome/browser/extensions/extension_bookmarks_module.cc
+++ b/chrome/browser/extensions/extension_bookmarks_module.cc
@@ -29,8 +29,11 @@ class ExtensionBookmarks {
dict->SetString(keys::kIdKey, Int64ToString(node->id()));
const BookmarkNode* parent = node->GetParent();
- if (parent)
+ if (parent) {
dict->SetString(keys::kParentIdKey, Int64ToString(parent->id()));
+ dict->SetString(keys::kIndexKey,
+ Int64ToString(parent->IndexOfChild(node)));
+ }
if (!node->is_folder()) {
dict->SetString(keys::kUrlKey, node->GetURL().spec());