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

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

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 145001)
+++ chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (working copy)
@@ -19,6 +19,7 @@
#import "chrome/browser/themes/theme_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/chrome_pages.h"
#import "chrome/browser/ui/cocoa/background_gradient_view.h"
#import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h"
@@ -789,7 +790,7 @@
GURL url;
string16 title;
bookmark_utils::GetURLAndTitleToBookmark(
- browser_->GetActiveWebContents(), &url, &title);
+ chrome::GetActiveWebContents(browser_), &url, &title);
BookmarkEditor::Show([[self view] window],
browser_->profile(),
BookmarkEditor::EditDetails::AddNodeInFolder(
@@ -2293,7 +2294,7 @@
#pragma mark BookmarkBarToolbarViewController Protocol
- (int)currentTabContentsHeight {
- WebContents* wc = browser_->GetActiveWebContents();
+ WebContents* wc = chrome::GetActiveWebContents(browser_);
return wc ? wc->GetView()->GetContainerSize().height() : 0;
}
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698