Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc |
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc |
index 64cfc3294d10df30b1fc79d3bd62f3f2249cfa1f..f84b7ab1ba4bf987ca5849bdbc04a6c8dc825c9b 100644 |
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc |
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc |
@@ -245,11 +245,13 @@ TEST_F(BookmarkBarViewTest, RemoveNode) { |
EXPECT_EQ(2, test_helper_->GetBookmarkButtonCount()); |
// Remove the 2nd node, should still only have 1 visible. |
- BookmarkModelFactory::GetForProfile(profile())->Remove(bookmark_bar_node, 1); |
+ BookmarkModelFactory::GetForProfile(profile()) |
+ ->Remove(bookmark_bar_node->GetChild(1)); |
EXPECT_EQ("a", GetStringForVisibleButtons()); |
// Remove the first node, should force a new button (for the 'c' node). |
- BookmarkModelFactory::GetForProfile(profile())->Remove(bookmark_bar_node, 0); |
+ BookmarkModelFactory::GetForProfile(profile()) |
+ ->Remove(bookmark_bar_node->GetChild(0)); |
ASSERT_EQ("c", GetStringForVisibleButtons()); |
} |