diff options
author | albertb@google.com <albertb@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-01 18:44:38 +0000 |
---|---|---|
committer | albertb@google.com <albertb@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-01 18:44:38 +0000 |
commit | 3acb70efe8e81a9a9851f1b1c700dad3e6d94045 (patch) | |
tree | bb50ea9d245a8829b016b7015c74ef91bf93385d /chrome/browser/sessions/session_restore.cc | |
parent | 0e5d08b9b0b2476600975106026331488deee938 (diff) | |
download | chromium_src-3acb70efe8e81a9a9851f1b1c700dad3e6d94045.zip chromium_src-3acb70efe8e81a9a9851f1b1c700dad3e6d94045.tar.gz chromium_src-3acb70efe8e81a9a9851f1b1c700dad3e6d94045.tar.bz2 |
Added a new method to SessionService that returns a snapshot of the current
session. The snapshot is computed directly from memory or, if there are
pending closed windows, by reading the session commands from disk.
BUG=35040
TEST=unit tests
Review URL: http://codereview.chromium.org/661055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions/session_restore.cc')
-rw-r--r-- | chrome/browser/sessions/session_restore.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc index 3776666..99451b2 100644 --- a/chrome/browser/sessions/session_restore.cc +++ b/chrome/browser/sessions/session_restore.cc @@ -189,7 +189,7 @@ class SessionRestoreImpl : public NotificationObserver { void Restore() { SessionService* session_service = profile_->GetSessionService(); DCHECK(session_service); - SessionService::LastSessionCallback* callback = + SessionService::SessionCallback* callback = NewCallback(this, &SessionRestoreImpl::OnGotSession); session_service->GetLastSession(&request_consumer_, callback); |