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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm

Issue 9085006: Replace Browser::GetTabContentsAt with GetWebContentsAt and update all callers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac yet again Created 8 years, 12 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: chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm (revision 116244)
+++ chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm (working copy)
@@ -11,10 +11,12 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/public/browser/web_contents.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util_mac.h"
+using content::WebContents;
+
@implementation BookmarkAllTabsController
- (id)initWithParentWindow:(NSWindow*)parentWindow
@@ -45,9 +47,9 @@
TabStripModel* tabstrip_model = browser->tabstrip_model();
const int tabCount = tabstrip_model->count();
for (int i = 0; i < tabCount; ++i) {
- TabContents* tc = tabstrip_model->GetTabContentsAt(i)->tab_contents();
- const string16 tabTitle = tc->GetTitle();
- const GURL& tabURL(tc->GetURL());
+ WebContents* wc = tabstrip_model->GetTabContentsAt(i)->web_contents();
+ const string16 tabTitle = wc->GetTitle();
+ const GURL& tabURL(wc->GetURL());
ActiveTabNameURLPair tabPair(tabTitle, tabURL);
activeTabPairsVector_.push_back(tabPair);
}
« no previous file with comments | « chrome/browser/ui/cocoa/applescript/window_applescript.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698