summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm')
-rw-r--r--chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm11
1 files changed, 2 insertions, 9 deletions
diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
index 6ad6d41..06927ea 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
@@ -844,20 +844,13 @@ private:
BrowserWindowController* controller =
(BrowserWindowController*)[[tabStripView_ window] windowController];
- // Account for the widths of the new tab button, the avatar, and the
- // fullscreen button if any/all are present.
+ // Account for the widths of the new tab button or the avatar, if any/all
+ // are present.
availableSpace -= NSWidth([newTabButton_ frame]) + kNewTabButtonOffset;
if ([controller respondsToSelector:@selector(shouldShowAvatar)] &&
[controller shouldShowAvatar]) {
availableSpace -= kAvatarTabStripShrink;
}
- if ([[tabStripView_ window]
- respondsToSelector:@selector(toggleFullScreen:)]) {
- NSButton* fullscreenButton = [[tabStripView_ window]
- standardWindowButton:NSWindowFullScreenButton];
- if (fullscreenButton)
- availableSpace -= [fullscreenButton frame].size.width;
- }
}
availableSpace -= [self indentForControls];
}