Index: chrome/browser/gtk/browser_window_gtk.cc |
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc |
index eb708f51006c9fffd387679bdb6a5a0193a2ca3e..1ee14edd10cf4e497d60f2cd43081f98332fede6 100644 |
--- a/chrome/browser/gtk/browser_window_gtk.cc |
+++ b/chrome/browser/gtk/browser_window_gtk.cc |
@@ -1353,7 +1353,7 @@ bool BrowserWindowGtk::CanClose() const { |
if (!browser_->ShouldCloseWindow()) |
return false; |
- if (browser_->tabstrip_model()->HasNonPhantomTabs()) { |
+ if (!browser_->tabstrip_model()->empty()) { |
// Tab strip isn't empty. Hide the window (so it appears to have closed |
// immediately) and close all the tabs, allowing the renderers to shut |
// down. When the tab strip is empty we'll be called back again. |