Index: chrome/browser/android/provider/chrome_browser_provider.cc |
diff --git a/chrome/browser/android/provider/chrome_browser_provider.cc b/chrome/browser/android/provider/chrome_browser_provider.cc |
index 68121bd297c4cafed26e2fc9de8b5e3489f9268c..08d23abb848a4fa7f83e53cc464da95d3ef3aaf9 100644 |
--- a/chrome/browser/android/provider/chrome_browser_provider.cc |
+++ b/chrome/browser/android/provider/chrome_browser_provider.cc |
@@ -260,10 +260,8 @@ class RemoveBookmarkTask : public BookmarkModelObserverTask { |
static void RunOnUIThread(BookmarkModel* model, const int64 id) { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
const BookmarkNode* node = bookmarks::GetBookmarkNodeByID(model, id); |
- if (node && node->parent()) { |
- const BookmarkNode* parent_node = node->parent(); |
- model->Remove(parent_node, parent_node->GetIndexOf(node)); |
- } |
+ if (node && node->parent()) |
+ model->Remove(node); |
} |
// Verify that the bookmark was actually removed. Called synchronously. |