Index: chrome/browser/cocoa/browser_window_controller.mm |
=================================================================== |
--- chrome/browser/cocoa/browser_window_controller.mm (revision 45803) |
+++ chrome/browser/cocoa/browser_window_controller.mm (working copy) |
@@ -1272,9 +1272,14 @@ |
} |
- (NSInteger)numberOfTabs { |
+ // count() includes pinned tabs (both live and phantom). |
return browser_->tabstrip_model()->count(); |
} |
+- (BOOL)hasLiveTabs { |
+ return browser_->tabstrip_model()->HasNonPhantomTabs(); |
+} |
+ |
- (NSString*)selectedTabTitle { |
TabContents* contents = browser_->tabstrip_model()->GetSelectedTabContents(); |
return base::SysUTF16ToNSString(contents->GetTitle()); |