| Index: components/bookmarks/browser/bookmark_utils.h
|
| diff --git a/components/bookmarks/browser/bookmark_utils.h b/components/bookmarks/browser/bookmark_utils.h
|
| index 67928ee6589fa9590c0d09e81e7f36f2f6a23a3e..c32461b32887bf533b53f3833ca150e95cf7f3fb 100644
|
| --- a/components/bookmarks/browser/bookmark_utils.h
|
| +++ b/components/bookmarks/browser/bookmark_utils.h
|
| @@ -150,6 +150,14 @@ bool IsBookmarkedByUser(BookmarkModel* model, const GURL& url);
|
| // Returns the node with |id|, or NULL if there is no node with |id|.
|
| const BookmarkNode* GetBookmarkNodeByID(const BookmarkModel* model, int64 id);
|
|
|
| +// Returns true if |node| is a descendant of |root|.
|
| +bool IsDescendantOf(const bookmarks::BookmarkNode* node,
|
| + const bookmarks::BookmarkNode* root);
|
| +
|
| +// Returns true if any node in |list| is a descendant of |root|.
|
| +bool HasDescendantsOf(const std::vector<const bookmarks::BookmarkNode*>& list,
|
| + const bookmarks::BookmarkNode* root);
|
| +
|
| } // namespace bookmarks
|
|
|
| #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_
|
|
|