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

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

Issue 446003002: Title: Same Bookmark url is getting pasted on the Bookmarkbar with same title. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes done as per reviewer comments. Created 6 years, 4 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_model.h
diff --git a/components/bookmarks/browser/bookmark_model.h b/components/bookmarks/browser/bookmark_model.h
index 0a2d9643c89ccf84d3604de102340a0e8b2b61e2..e8c743cbbd28276f7a96ed06271f02d29f71445f 100644
--- a/components/bookmarks/browser/bookmark_model.h
+++ b/components/bookmarks/browser/bookmark_model.h
@@ -167,6 +167,13 @@ class BookmarkModel : public KeyedService {
// Returns the set of nodes with the |url|.
void GetNodesByURL(const GURL& url, std::vector<const BookmarkNode*>* nodes);
+ // Return the set of nodes and titles with the |url| and |title|.
+ void GetNodesByURLAndTitle(const GURL& url,
+ const base::string16& title,
+ const BookmarkNode* parent,
+ std::vector<const BookmarkNode*>* nodes,
+ std::vector<base::string16>* titles);
+
// Returns the most recently added user node for the |url|; urls from any
// nodes that are not editable by the user are never returned by this call.
// Returns NULL if |url| is not bookmarked.

Powered by Google App Engine
This is Rietveld 408576698