summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/fullscreen_controller.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/fullscreen_controller.mm')
-rw-r--r--chrome/browser/cocoa/fullscreen_controller.mm8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/fullscreen_controller.mm b/chrome/browser/cocoa/fullscreen_controller.mm
index 90186bd..74de909 100644
--- a/chrome/browser/cocoa/fullscreen_controller.mm
+++ b/chrome/browser/cocoa/fullscreen_controller.mm
@@ -142,8 +142,7 @@ const CGFloat kFloatingBarVerticalOffset = 22;
- (void)showTimerFire:(NSTimer*)timer;
- (void)hideTimerFire:(NSTimer*)timer;
-// Stops any running animations, removes tracking areas, etc. Common cleanup
-// code shared by |-exitFullscreen| and |-dealloc|.
+// Stops any running animations, removes tracking areas, etc.
- (void)cleanup;
// Shows and hides the UI associated with this window being active (having main
@@ -169,7 +168,7 @@ const CGFloat kFloatingBarVerticalOffset = 22;
}
- (void)dealloc {
- [self cleanup];
+ DCHECK(!isFullscreen_);
[super dealloc];
}
@@ -580,6 +579,9 @@ const CGFloat kFloatingBarVerticalOffset = 22;
// since we will no longer be receiving actual status resignation
// notifications.
[self hideActiveWindowUI];
+
+ // No more calls back up to the BWC.
+ browserController_ = nil;
}
- (void)showActiveWindowUI {