Index: chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge_unittest.mm |
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge_unittest.mm |
index 1ee0f88b90cd9f61d0c7cbbbfb26390ef3a318bc..b46148e9d645f3505336a3d2eb0171b0280b7029 100644 |
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge_unittest.mm |
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge_unittest.mm |
@@ -110,7 +110,7 @@ TEST_F(BookmarkMenuBridgeTest, TestBookmarkMenuAutoSeparator) { |
EXPECT_EQ(6, [menu numberOfItems]); |
// Remove the new bookmark and reload and we should have 2 items again |
// because the separator should have been removed as well. |
- model->Remove(parent, 0); |
+ model->Remove(parent->GetChild(0)); |
bridge_->UpdateMenu(menu); |
EXPECT_EQ(0, [menu numberOfItems]); |
} |
@@ -329,7 +329,7 @@ TEST_F(BookmarkMenuBridgeTest, TestGetMenuItemForNode) { |
const BookmarkNode* removed_node = root->GetChild(0); |
EXPECT_EQ(2, root->child_count()); |
- model->Remove(root, 0); |
+ model->Remove(root->GetChild(0)); |
EXPECT_EQ(1, root->child_count()); |
bridge_->UpdateMenu(menu); |
EXPECT_FALSE(MenuItemForNode(bridge_.get(), removed_node)); |