diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-05 16:27:22 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-05 16:27:22 +0000 |
commit | 6c0ca7fc3a07040aee3106f86650ef6cdbf3327a (patch) | |
tree | e8564c51f7d778e3847615c6b85b087008840e17 /chrome/browser/ui/browser_tabrestore.cc | |
parent | 2f11e0172cf0eab47f481dce887f8a92e3e40b29 (diff) | |
download | chromium_src-6c0ca7fc3a07040aee3106f86650ef6cdbf3327a.zip chromium_src-6c0ca7fc3a07040aee3106f86650ef6cdbf3327a.tar.gz chromium_src-6c0ca7fc3a07040aee3106f86650ef6cdbf3327a.tar.bz2 |
Changes pref for whether last session exited cleanly from a boolean to
a string pref that enumerates the ways the session ended: normal,
result of logout/shutdown, crashed. I need this for knowing when
TabRestoreService should restore from the previous session.
BUG=150799
TEST=none, this is prep for real fix
R=sail@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11039041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160392 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_tabrestore.cc')
-rw-r--r-- | chrome/browser/ui/browser_tabrestore.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/browser_tabrestore.cc b/chrome/browser/ui/browser_tabrestore.cc index 7c93e92..b19e187 100644 --- a/chrome/browser/ui/browser_tabrestore.cc +++ b/chrome/browser/ui/browser_tabrestore.cc @@ -34,9 +34,9 @@ NavigationController::RestoreType GetRestoreType( bool from_last_session) { if (!from_last_session) return NavigationController::RESTORE_CURRENT_SESSION; - return browser->profile()->DidLastSessionExitCleanly() ? - NavigationController::RESTORE_LAST_SESSION_EXITED_CLEANLY : - NavigationController::RESTORE_LAST_SESSION_CRASHED; + return browser->profile()->GetLastSessionExitType() == Profile::EXIT_CRASHED ? + NavigationController::RESTORE_LAST_SESSION_CRASHED : + NavigationController::RESTORE_LAST_SESSION_EXITED_CLEANLY; } } |