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

Unified Diff: components/bookmarks/browser/bookmark_index_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: components/bookmarks/browser/bookmark_index_unittest.cc
diff --git a/components/bookmarks/browser/bookmark_index_unittest.cc b/components/bookmarks/browser/bookmark_index_unittest.cc
index 22efeaaa754a5a4bc5b4d61333b23f02b6a63b87..cab18e56987f86637307686fa8d73c3d1cc0b2e8 100644
--- a/components/bookmarks/browser/bookmark_index_unittest.cc
+++ b/components/bookmarks/browser/bookmark_index_unittest.cc
@@ -452,7 +452,7 @@ TEST_F(BookmarkIndexTest, Remove) {
AddBookmarks(titles, urls, arraysize(titles));
// Remove the node and make sure we don't get back any results.
- model_->Remove(model_->other_node(), 0);
+ model_->Remove(model_->other_node()->GetChild(0));
ExpectMatches("A", NULL, 0U);
}

Powered by Google App Engine
This is Rietveld 408576698