| Index: chrome/browser/lifetime/application_lifetime.cc
|
| diff --git a/chrome/browser/lifetime/application_lifetime.cc b/chrome/browser/lifetime/application_lifetime.cc
|
| index 080966b14f2cbcafea6b8065d95e95e55b5f9885..4705c7c9d8e81bd421da4efe80d0468c5ea9b617 100644
|
| --- a/chrome/browser/lifetime/application_lifetime.cc
|
| +++ b/chrome/browser/lifetime/application_lifetime.cc
|
| @@ -242,13 +242,10 @@ void AttemptUserExit() {
|
| }
|
|
|
| void AttemptRestart() {
|
| - if (!CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kDisableRestoreSessionState)) {
|
| - // TODO(beng): Can this use ProfileManager::GetLoadedProfiles instead?
|
| - BrowserList::const_iterator it;
|
| - for (it = BrowserList::begin(); it != BrowserList::end(); ++it)
|
| - content::BrowserContext::SaveSessionState((*it)->profile());
|
| - }
|
| + // TODO(beng): Can this use ProfileManager::GetLoadedProfiles instead?
|
| + BrowserList::const_iterator it;
|
| + for (it = BrowserList::begin(); it != BrowserList::end(); ++it)
|
| + content::BrowserContext::SaveSessionState((*it)->profile());
|
|
|
| PrefService* pref_service = g_browser_process->local_state();
|
| pref_service->SetBoolean(prefs::kWasRestarted, true);
|
|
|