diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-18 00:09:55 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-18 00:09:55 +0000 |
commit | ea6f76577b2fc1b31bb84fa03c5491609dc0bdf3 (patch) | |
tree | c46a94cdbe9e13a504b2b9eb0f63d3b4dae1bb46 /chrome/browser/profile.h | |
parent | 5e324b7c50d5ec8bd2feb4ee6fe93bae82e82458 (diff) | |
download | chromium_src-ea6f76577b2fc1b31bb84fa03c5491609dc0bdf3.zip chromium_src-ea6f76577b2fc1b31bb84fa03c5491609dc0bdf3.tar.gz chromium_src-ea6f76577b2fc1b31bb84fa03c5491609dc0bdf3.tar.bz2 |
Makes the tab restore service contain any windows that were open at
the time of a crash.
BUG=5465
TEST=Bring up chrome, go to google.com. Wait a minute. Kill chrome via
the task manager. Launch chrome again. Make sure the new tab page
shows an entry named 'Window (g)' where g is Google's favicon.
Review URL: http://codereview.chromium.org/14172
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7188 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r-- | chrome/browser/profile.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index 44cdf7f..c2b88a89 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -65,6 +65,7 @@ class Profile { // off the record mode. IMPLICIT_ACCESS }; + Profile() : restored_last_session_(false) {} virtual ~Profile() {} // Profile prefs are registered as soon as the prefs are loaded for the first @@ -229,8 +230,19 @@ class Profile { } #endif + // Did the user restore the last session? This is set by SessionRestore. + void set_restored_last_session(bool restored_last_session) { + restored_last_session_ = restored_last_session; + } + bool restored_last_session() const { + return restored_last_session_; + } + protected: static URLRequestContext* default_request_context_; + + private: + bool restored_last_session_; }; class OffTheRecordProfileImpl; |