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

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: Put new method into ifdef 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..c549e2c6576880cbcedcfd49f84743f3a9ddaca9 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 to add new nodes to, never returns null (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