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

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: Fixed comment and new empty check 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..82e6fcafc6e3675994ff415c2345559e6cdc21da 100644
--- a/components/bookmarks/browser/bookmark_utils.h
+++ b/components/bookmarks/browser/bookmark_utils.h
@@ -162,6 +162,14 @@ 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);
+
+// Returns whether or not a bookmark model contains any bookmarks aside of the
+// permanent nodes.
+bool HasUserCreatedBookmarks(BookmarkModel* model);
+
} // namespace bookmarks
#endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698