Chromium Code Reviews| Index: chrome/browser/ui/cocoa/browser_window_cocoa.h |
| diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.h b/chrome/browser/ui/cocoa/browser_window_cocoa.h |
| index a4f276f03feff57a3a79b0214231437acbbc5dce..7bf4b317b02294bfa659ee1afa26ad9eb678733a 100644 |
| --- a/chrome/browser/ui/cocoa/browser_window_cocoa.h |
| +++ b/chrome/browser/ui/cocoa/browser_window_cocoa.h |
| @@ -172,6 +172,9 @@ class BrowserWindowCocoa |
| // the window's title to reflect that. |
| void UpdateAlertState(TabAlertState alert_state); |
| + // Called when the controller's window invokes -onWindowWillClose:. |
|
Robert Sesek
2016/06/08 02:00:32
nit: just windowWillClose: (and on line 206).
tapted
2016/06/08 02:47:27
Whoops - Done. (I noticed you updated the CL descr
|
| + void OnWindowWillClose(); |
| + |
| // Returns the cocoa-world BrowserWindowController |
| BrowserWindowController* cocoa_controller() { return controller_; } |
| @@ -199,6 +202,10 @@ class BrowserWindowCocoa |
| // which can be audio playing, muting or none (determined by alert state of |
| // tabs. |
| TabAlertState alert_state_; |
| + |
| + // True when the controlled window invokes -onWindowWillClose:, and it may no |
| + // longer be safe to access [controller_ window]. |
| + bool window_closed_; |
| }; |
| #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |