summaryrefslogtreecommitdiffstats
path: root/chrome/browser/lifetime/application_lifetime.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/lifetime/application_lifetime.cc')
-rw-r--r--chrome/browser/lifetime/application_lifetime.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/lifetime/application_lifetime.cc b/chrome/browser/lifetime/application_lifetime.cc
index b05d711..25c3a2f 100644
--- a/chrome/browser/lifetime/application_lifetime.cc
+++ b/chrome/browser/lifetime/application_lifetime.cc
@@ -191,7 +191,7 @@ void CloseAllBrowsers() {
// session we need to make sure the browser is destroyed now. So, invoke
// DestroyBrowser to make sure the browser is deleted and cleanup can
// happen.
- while (browser->tab_count())
+ while (browser->tab_strip_model()->count())
delete browser->tab_strip_model()->GetWebContentsAt(0);
browser->window()->DestroyBrowser();
i = BrowserList::begin();