Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
index 664ca9550b0745404668322066b197e43ed47eef..f02b5eb5b337d89e801b85c7cee46bd36d4d487c 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
@@ -357,10 +357,16 @@ willPositionSheet:(NSWindow*)sheet |
static_cast<FramedBrowserWindow*>([self window]); |
rightIndent += -[window fullScreenButtonOriginAdjustment].x; |
- // The new avatar is wider than the default indentation, so we need to |
- // account for its width. |
- if ([self shouldUseNewAvatarButton]) |
+ if ([self shouldUseNewAvatarButton]) { |
+ // The new avatar is wider than the default indentation, so we need to |
+ // account for its width. |
rightIndent += NSWidth([avatarButton frame]) + kAvatarTabStripShrink; |
+ |
+ // When the fullscreen icon is not displayed, return its width to the |
+ // tabstrip. |
+ if ([self isFullscreen]) |
+ rightIndent -= kFullscreenIconWidth; |
+ } |
} else if ([self shouldShowAvatar]) { |
rightIndent += kAvatarTabStripShrink + |
NSWidth([avatarButton frame]) + kAvatarRightOffset; |