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

Unified Diff: components/bookmarks/browser/bookmark_utils.h

Issue 2367533003: Always add bookmarks to the mobile node on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored GetParentForNewNodes into bookmark_utils Created 4 years, 2 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_utils.h
diff --git a/components/bookmarks/browser/bookmark_utils.h b/components/bookmarks/browser/bookmark_utils.h
index 0384cfc11ff89bbcdd3e89f65dcc75297e845eb7..358dd0bfc6114835224ccc1a528e4766976d848b 100644
--- a/components/bookmarks/browser/bookmark_utils.h
+++ b/components/bookmarks/browser/bookmark_utils.h
@@ -162,6 +162,10 @@ bool IsDescendantOf(const BookmarkNode* node, const BookmarkNode* root);
bool HasDescendantsOf(const std::vector<const BookmarkNode*>& list,
const BookmarkNode* root);
+// Returns the parent the last node was added to. This never returns NULL
sky 2016/10/10 21:02:24 Returns the parent to add new nodes to, never retu
kraush 2016/10/10 22:18:05 Will change.
+// (as long as the model is loaded).
+const BookmarkNode* GetParentForNewNodes(BookmarkModel* model);
+
} // namespace bookmarks
#endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698