Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1676)

Unified Diff: chrome/browser/browser_list.cc

Issue 1026005: Makes pinned tab restore on startup if you haven't enabled session (Closed)
Patch Set: check Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_init.cc ('k') | chrome/browser/browser_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « chrome/browser/browser_init.cc ('k') | chrome/browser/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698