| Index: chrome/browser/bookmarks/bookmark_utils.cc
|
| diff --git a/chrome/browser/bookmarks/bookmark_utils.cc b/chrome/browser/bookmarks/bookmark_utils.cc
|
| index f4cc03a59bb711767d4b044acfe5a3d3a5c659ab..44c40b0f3576fd6ab61a8466118fac6d331f6dd8 100644
|
| --- a/chrome/browser/bookmarks/bookmark_utils.cc
|
| +++ b/chrome/browser/bookmarks/bookmark_utils.cc
|
| @@ -646,6 +646,16 @@ void GetURLAndTitleToBookmark(TabContents* tab_contents,
|
| *title = tab_contents->GetTitle();
|
| }
|
|
|
| +void GetURLAndTitleToBookmarkFromCurrentTab(Profile* profile,
|
| + GURL* url,
|
| + string16* title) {
|
| + Browser* browser = BrowserList::GetLastActiveWithProfile(profile);
|
| + TabContents* tab_contents = browser ? browser->GetSelectedTabContents()
|
| + : NULL;
|
| + if (tab_contents)
|
| + GetURLAndTitleToBookmark(tab_contents, url, title);
|
| +}
|
| +
|
| void GetURLsForOpenTabs(Browser* browser,
|
| std::vector<std::pair<GURL, string16> >* urls) {
|
| for (int i = 0; i < browser->tab_count(); ++i) {
|
|
|