Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(901)

Unified Diff: chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc

Issue 1105413002: Avoid conversion of index to BookmarkNode pointer unnacessarily. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc
diff --git a/chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc b/chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc
index c252dbe147429354258e93a3641f38b255070373..b0a51f9e791ec4bfa5f74023f926e3d22a3f24ec 100644
--- a/chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc
@@ -55,7 +55,7 @@ TEST_F(BookmarkUIUtilsTest, HasBookmarkURLs) {
// folder to create a two level hierarchy.
// But first we have to remove the URL from |folder1|.
- model->Remove(folder1, 0);
+ model->Remove(folder1->GetChild(0));
const BookmarkNode* subfolder1 =
model->AddFolder(folder1, 0, ASCIIToUTF16("Subfolder1"));
@@ -114,7 +114,7 @@ TEST_F(BookmarkUIUtilsTest, HasBookmarkURLsAllowedInIncognitoMode) {
// folder to create a two level hierarchy.
// But first we have to remove the URL from |folder1|.
- model->Remove(folder1, 0);
+ model->Remove(folder1->GetChild(0));
const BookmarkNode* subfolder1 =
model->AddFolder(folder1, 0, ASCIIToUTF16("Subfolder1"));

Powered by Google App Engine
This is Rietveld 408576698