| Index: components/bookmarks/browser/bookmark_model.cc
|
| diff --git a/components/bookmarks/browser/bookmark_model.cc b/components/bookmarks/browser/bookmark_model.cc
|
| index 5f26f67ce2ead1706714e428714fe44701bb1c8b..909baa69df43c1faaab974c144a5cde7da0fdca1 100644
|
| --- a/components/bookmarks/browser/bookmark_model.cc
|
| +++ b/components/bookmarks/browser/bookmark_model.cc
|
| @@ -507,6 +507,26 @@ void BookmarkModel::GetNodesByURL(const GURL& url,
|
| }
|
| }
|
|
|
| +void BookmarkModel::GetNodesByURLAndTitle(
|
| + const GURL& url,
|
| + const base::string16 title,
|
| + const BookmarkNode* parent,
|
| + std::vector<const BookmarkNode*>* nodes,
|
| + std::vector<base::string16>* titles) {
|
| + base::AutoLock url_lock(url_lock_);
|
| + BookmarkNode tmp_node(url);
|
| + NodesOrderedByURLSet::iterator i = nodes_ordered_by_url_set_.find(&tmp_node);
|
| + while (i != nodes_ordered_by_url_set_.end() && (*i)->url() == url) {
|
| + if ((parent == (*i)->parent()) &&
|
| + (title == (*i)->GetTitle() ||
|
| + StartsWith((*i)->GetTitle(), title, false))) {
|
| + titles->push_back((*i)->GetTitle());
|
| + nodes->push_back(*i);
|
| + }
|
| + ++i;
|
| + }
|
| +}
|
| +
|
| const BookmarkNode* BookmarkModel::GetMostRecentlyAddedUserNodeForURL(
|
| const GURL& url) {
|
| std::vector<const BookmarkNode*> nodes;
|
|
|