| Index: chrome/browser/ui/cocoa/browser_window_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
|
| index fe1c9c01fcf46f12499f64e277ca99ac39fd6c44..48fdb1c2716ce49979fb770df0d4ed6db42743d8 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
|
| @@ -1025,11 +1025,7 @@ bool IsTabDetachingInFullscreenEnabled() {
|
| manager->DisplayPendingRequests();
|
| }
|
|
|
| - // If the web contents want to focus on the location bar, do not call the
|
| - // animation since the location bar will drop down when it's focused.
|
| - bool willFocusLocationBar =
|
| - newContents && newContents->FocusLocationBarByDefault();
|
| - if ([self isInAnyFullscreenMode] && !willFocusLocationBar)
|
| + if ([self isInAnyFullscreenMode])
|
| [[self fullscreenToolbarController] revealToolbarForTabStripChanges];
|
| }
|
|
|
| @@ -1467,10 +1463,8 @@ bool IsTabDetachingInFullscreenEnabled() {
|
| }
|
|
|
| - (void)onTabInsertedInForeground:(BOOL)inForeground {
|
| - if ([self isInAnyFullscreenMode] && !inForeground &&
|
| - ![toolbarController_ isLocationBarFocused]) {
|
| + if ([self isInAnyFullscreenMode] && !inForeground)
|
| [[self fullscreenToolbarController] revealToolbarForTabStripChanges];
|
| - }
|
| }
|
|
|
| - (void)userChangedTheme {
|
|
|