Index: chrome/browser/ui/browser.cc |
=================================================================== |
--- chrome/browser/ui/browser.cc (revision 194196) |
+++ chrome/browser/ui/browser.cc (working copy) |
@@ -614,10 +614,8 @@ |
bool should_quit_if_last_browser = |
browser_shutdown::IsTryingToQuit() || !chrome::WillKeepAlive(); |
- if (should_quit_if_last_browser && |
- BrowserList::GetInstance(host_desktop_type_)->size() == 1) { |
+ if (should_quit_if_last_browser && chrome::ShouldStartShutdown(this)) |
browser_shutdown::OnShutdownStarting(browser_shutdown::WINDOW_CLOSE); |
- } |
// Don't use GetForProfileIfExisting here, we want to force creation of the |
// session service so that user can restore what was open. |