Index: chrome/browser/browser_list.cc |
diff --git a/chrome/browser/browser_list.cc b/chrome/browser/browser_list.cc |
index 63712d75eadf2a07a87a713c5eee1f7fa294dc1d..1d97388f1b082a7523ecc2e2760615fdbc55c1a3 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(); |