summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_list.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-18 16:46:40 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-18 16:46:40 +0000
commit911f815112d8d11778c771467fbef2c2b1f8e160 (patch)
treea6f9aa0ad2d669de7860e6f4da1b9e7f31f1354d /chrome/browser/browser_list.cc
parent4a827847f1b9b860bcd5c45725249a3de3cfc205 (diff)
downloadchromium_src-911f815112d8d11778c771467fbef2c2b1f8e160.zip
chromium_src-911f815112d8d11778c771467fbef2c2b1f8e160.tar.gz
chromium_src-911f815112d8d11778c771467fbef2c2b1f8e160.tar.bz2
Makes pinned tab restore on startup if you haven't enabled session
restore. BUG=23613 TEST=turn off session restore, pin a tab, restart chrome and make sure you get back the pinned tab. Review URL: http://codereview.chromium.org/1026005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.cc')
-rw-r--r--chrome/browser/browser_list.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/browser_list.cc b/chrome/browser/browser_list.cc
index 63712d7..1d97388 100644
--- a/chrome/browser/browser_list.cc
+++ b/chrome/browser/browser_list.cc
@@ -235,6 +235,11 @@ void BrowserList::CloseAllBrowsers(bool use_post) {
// static
void BrowserList::CloseAllBrowsersAndExit() {
+ NotificationService::current()->Notify(
+ NotificationType::APP_EXITING,
+ NotificationService::AllSources(),
+ NotificationService::NoDetails());
+
#if !defined(OS_MACOSX)
// On most platforms, closing all windows causes the application to exit.
CloseAllBrowsers(true);
@@ -256,6 +261,11 @@ void BrowserList::WindowsSessionEnding() {
browser_shutdown::OnShutdownStarting(browser_shutdown::END_SESSION);
+ NotificationService::current()->Notify(
+ NotificationType::APP_EXITING,
+ NotificationService::AllSources(),
+ NotificationService::NoDetails());
+
// Write important data first.
g_browser_process->EndSession();