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

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

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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_bar_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (revision 116109)
+++ chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (working copy)
@@ -56,6 +56,7 @@
using content::OpenURLParams;
using content::Referrer;
using content::UserMetricsAction;
+using content::WebContents;
// Bookmark bar state changing and animations
//
@@ -2283,8 +2284,8 @@
#pragma mark BookmarkBarToolbarViewController Protocol
- (int)currentTabContentsHeight {
- TabContents* tc = browser_->GetSelectedTabContents();
- return tc ? tc->GetView()->GetContainerSize().height() : 0;
+ WebContents* wc = browser_->GetSelectedWebContents();
+ return wc ? wc->GetView()->GetContainerSize().height() : 0;
}
- (ui::ThemeProvider*)themeProvider {
« no previous file with comments | « chrome/browser/ui/browser_tab_restore_service_delegate.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698