| 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 7eec24016ad9f688415a3dc6ada8a55fd97fe9f0..5af6f47d49676b64f1ea624a50a86f1481bf6995 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
|
| @@ -458,6 +458,13 @@ void SetUpBrowserWindowCommandHandler(NSWindow* window) {
|
| [presentationModeController_ exitPresentationMode];
|
| presentationModeController_.reset();
|
|
|
| + // Explicitly release |fullscreenTransition_| here since it may call back to
|
| + // this BWC in |-dealloc|. Reset the fullscreen variables.
|
| + if (fullscreenTransition_) {
|
| + [fullscreenTransition_ browserWillBeDestroyed];
|
| + [self resetCustomAppKitFullscreenVariables];
|
| + }
|
| +
|
| // Under certain testing configurations we may not actually own the browser.
|
| if (ownsBrowser_ == NO)
|
| ignore_result(browser_.release());
|
|
|