summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authormunjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 23:27:13 +0000
committermunjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 23:27:13 +0000
commit367d707fa4f9a6712ccb7035c530da5788a4f5a2 (patch)
tree676c59f1f4eec2145a59fcb36c8894afab10042c /chrome/browser/views
parentd8241d65b71b1409c9f6581b9ceee68f9bf35c3e (diff)
downloadchromium_src-367d707fa4f9a6712ccb7035c530da5788a4f5a2.zip
chromium_src-367d707fa4f9a6712ccb7035c530da5788a4f5a2.tar.gz
chromium_src-367d707fa4f9a6712ccb7035c530da5788a4f5a2.tar.bz2
Try the original CL "Always persist bookmark IDs" again with the fix to
Valgrind issue. The fix is in bookmark_storage.h - initialized the newly added member ids_reassigned_ of LoadDetails class. See http://codereview.chromium.org/149310 for the original CL. TEST=NONE BUG=16068 Review URL: http://codereview.chromium.org/155456 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20565 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/bookmark_editor_view.cc4
-rw-r--r--chrome/browser/views/bookmark_editor_view.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/views/bookmark_editor_view.cc b/chrome/browser/views/bookmark_editor_view.cc
index 5843504..9001d2b 100644
--- a/chrome/browser/views/bookmark_editor_view.cc
+++ b/chrome/browser/views/bookmark_editor_view.cc
@@ -443,7 +443,7 @@ void BookmarkEditorView::ExpandAndSelect() {
tree_view_->ExpandAll();
const BookmarkNode* to_select = node_ ? node_->GetParent() : parent_;
- int group_id_to_select = to_select->id();
+ int64 group_id_to_select = to_select->id();
DCHECK(group_id_to_select); // GetMostRecentParent should never return NULL.
EditorNode* b_node =
FindNodeWithID(tree_model_->GetRoot(), group_id_to_select);
@@ -478,7 +478,7 @@ void BookmarkEditorView::CreateNodes(const BookmarkNode* bb_node,
BookmarkEditorView::EditorNode* BookmarkEditorView::FindNodeWithID(
BookmarkEditorView::EditorNode* node,
- int id) {
+ int64 id) {
if (node->value == id)
return node;
for (int i = 0; i < node->GetChildCount(); ++i) {
diff --git a/chrome/browser/views/bookmark_editor_view.h b/chrome/browser/views/bookmark_editor_view.h
index a03d3e9..98f5269 100644
--- a/chrome/browser/views/bookmark_editor_view.h
+++ b/chrome/browser/views/bookmark_editor_view.h
@@ -113,7 +113,7 @@ class BookmarkEditorView : public BookmarkEditor,
private:
// Type of node in the tree.
- typedef TreeNodeWithValue<int> EditorNode;
+ typedef TreeNodeWithValue<int64> EditorNode;
// Model for the TreeView. Trivial subclass that doesn't allow titles with
// empty strings.
@@ -175,7 +175,7 @@ class BookmarkEditorView : public BookmarkEditor,
void CreateNodes(const BookmarkNode* bb_node, EditorNode* b_node);
// Returns the node with the specified id, or NULL if one can't be found.
- EditorNode* FindNodeWithID(BookmarkEditorView::EditorNode* node, int id);
+ EditorNode* FindNodeWithID(BookmarkEditorView::EditorNode* node, int64 id);
// Invokes ApplyEdits with the selected node.
void ApplyEdits();