summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_list.cc
diff options
context:
space:
mode:
authorandybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-11 20:08:55 +0000
committerandybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-11 20:08:55 +0000
commitfdb4c7db1703189d9d26526e12c03cab7dd11655 (patch)
treef3817b489c7b0b57785fcbd32c2dbdb2341d14ff /chrome/browser/browser_list.cc
parent02afb591a63b446ad8a2db98654273b6675700a3 (diff)
downloadchromium_src-fdb4c7db1703189d9d26526e12c03cab7dd11655.zip
chromium_src-fdb4c7db1703189d9d26526e12c03cab7dd11655.tar.gz
chromium_src-fdb4c7db1703189d9d26526e12c03cab7dd11655.tar.bz2
Rolling back r34316 due to tab_switching_test failing. TBR=scherkus
TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.cc')
-rw-r--r--chrome/browser/browser_list.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/browser/browser_list.cc b/chrome/browser/browser_list.cc
index 7f7b753..413fda9 100644
--- a/chrome/browser/browser_list.cc
+++ b/chrome/browser/browser_list.cc
@@ -151,12 +151,7 @@ void BrowserList::AddBrowser(Browser* browser) {
void BrowserList::RemoveBrowser(Browser* browser) {
RemoveBrowserFrom(browser, &last_active_browsers_);
- bool close_app = false;
- // Since closing all windows does not indicate quitting the application on
- // Mac, don't check the condition based on the number of browser windows.
-#if defined(OS_WIN) || defined(OS_LINUX)
- close_app = (browsers_.size() == 1);
-#endif
+ bool close_app = (browsers_.size() == 1);
NotificationService::current()->Notify(
NotificationType::BROWSER_CLOSED,
Source<Browser>(browser), Details<bool>(&close_app));