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/test/testing_profile.cc | |
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/test/testing_profile.cc')
-rw-r--r-- | chrome/test/testing_profile.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc index 235c568..7a368dc 100644 --- a/chrome/test/testing_profile.cc +++ b/chrome/test/testing_profile.cc @@ -45,8 +45,10 @@ class BookmarkLoadObserver : public BookmarkModelObserver { } // namespace TestingProfile::TestingProfile() - : start_time_(Time::Now()), has_history_service_(false), - off_the_record_(false) { + : start_time_(Time::Now()), + has_history_service_(false), + off_the_record_(false), + last_session_exited_cleanly_(true) { PathService::Get(base::DIR_TEMP, &path_); file_util::AppendToPath(&path_, L"TestingProfilePath"); file_util::Delete(path_, true); @@ -54,8 +56,10 @@ TestingProfile::TestingProfile() } TestingProfile::TestingProfile(int count) - : start_time_(Time::Now()), has_history_service_(false), - off_the_record_(false) { + : start_time_(Time::Now()), + has_history_service_(false), + off_the_record_(false), + last_session_exited_cleanly_(true) { PathService::Get(base::DIR_TEMP, &path_); file_util::AppendToPath(&path_, L"TestingProfilePath" + IntToWString(count)); file_util::Delete(path_, true); |