Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Unified Diff: chrome/browser/profile.h

Issue 14172: Makes the tab restore service contain any windows that were open at... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile.h
===================================================================
--- chrome/browser/profile.h (revision 7147)
+++ chrome/browser/profile.h (working copy)
@@ -65,6 +65,7 @@
// 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 @@
}
#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;
« no previous file with comments | « no previous file | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698