Chromium Code Reviews| Index: chrome/browser/ui/views/frame/browser_view.cc |
| =================================================================== |
| --- chrome/browser/ui/views/frame/browser_view.cc (revision 169752) |
| +++ chrome/browser/ui/views/frame/browser_view.cc (working copy) |
| @@ -552,6 +552,13 @@ |
| // notifications will call back into deleted objects). |
| download_shelf_.reset(); |
| +#if defined(OS_WIN) && defined(USE_AURA) |
| + // Chrome ASH on Windows 8 could be closed with open browser windows. |
| + // Make sure that we close the browser window before destroying it. |
| + if (!browser_->tab_strip_model()->empty()) |
|
sky
2012/11/28 22:44:57
This seems wrong. What code path is letting us get
|
| + browser_->OnWindowClosing(); |
| +#endif |
| + |
| // The TabStrip attaches a listener to the model. Make sure we shut down the |
| // TabStrip first so that it can cleanly remove the listener. |
| if (tabstrip_) { |