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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 9121064: Cleanup: Remove more uses of Browser::tabstrip_model(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « chrome/browser/sessions/session_service.cc ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/browser_window_controller.mm (revision 120097)
+++ chrome/browser/ui/cocoa/browser_window_controller.mm (working copy)
@@ -1217,7 +1217,7 @@
// Before the tab is detached from its originating tab strip, store the
// pinned state so that it can be maintained between the windows.
- bool isPinned = dragBWC->browser_->tabstrip_model()->IsTabPinned(index);
+ bool isPinned = dragBWC->browser_->IsTabPinned(index);
// Now that we have enough information about the tab, we can remove it from
// the dragging window. We need to do this *before* we add it to the new
@@ -1299,7 +1299,7 @@
-tabOverflow.width, -tabOverflow.height);
// Before detaching the tab, store the pinned state.
- bool isPinned = browser_->tabstrip_model()->IsTabPinned(index);
+ bool isPinned = browser_->IsTabPinned(index);
// Detach it from the source window, which just updates the model without
// deleting the tab contents. This needs to come before creating the new
@@ -1449,7 +1449,7 @@
- (NSInteger)numberOfTabs {
// count() includes pinned tabs.
- return browser_->tabstrip_model()->count();
+ return browser_->tab_count();
}
- (BOOL)hasLiveTabs {
« no previous file with comments | « chrome/browser/sessions/session_service.cc ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698