Chromium Code Reviews| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm |
| diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm |
| index 3fb3b715d2468aeb49cb3ab9df0fd6ba69ed783b..bf926a98cb18def66b0294567d1c80a11c68555f 100644 |
| --- a/chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm |
| +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm |
| @@ -44,13 +44,10 @@ using content::WebContents; |
| - (void)UpdateActiveTabPairs { |
| activeTabPairsVector_.clear(); |
| Browser* browser = BrowserList::GetLastActive(); |
| - TabStripModel* tabstrip_model = browser->tabstrip_model(); |
| - const int tabCount = tabstrip_model->count(); |
| + const int tabCount = browser->tab_count(); |
| for (int i = 0; i < tabCount; ++i) { |
| - WebContents* wc = tabstrip_model->GetTabContentsAt(i)->web_contents(); |
| - const string16 tabTitle = wc->GetTitle(); |
| - const GURL& tabURL(wc->GetURL()); |
| - ActiveTabNameURLPair tabPair(tabTitle, tabURL); |
| + WebContents* wc = browser->GetWebContentsAt(i); |
|
Nico
2012/04/30 15:23:47
nit: The styleguide discourages abbreviations. Doe
tfarina
2012/04/30 16:59:12
Done.
|
| + ActiveTabNameURLPair tabPair(wc->GetTitle(), wc->GetURL()); |
| activeTabPairsVector_.push_back(tabPair); |
| } |
| } |