summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sessions/tab_restore_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sessions/tab_restore_service.cc')
-rw-r--r--chrome/browser/sessions/tab_restore_service.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/sessions/tab_restore_service.cc b/chrome/browser/sessions/tab_restore_service.cc
index 2fee862..701b0a3 100644
--- a/chrome/browser/sessions/tab_restore_service.cc
+++ b/chrome/browser/sessions/tab_restore_service.cc
@@ -439,6 +439,11 @@ void TabRestoreService::LoadTabsFromLastSession() {
if (load_state_ != NOT_LOADED || entries_.size() == kMaxEntries)
return;
+#if !defined(ENABLE_SESSION_SERVICE)
+ // If sessions are not stored in the SessionService, default to
+ // |LOADED_LAST_SESSION| state.
+ load_state_ = LOADING | LOADED_LAST_SESSION;
+#else
load_state_ = LOADING;
SessionService* session_service =
@@ -455,6 +460,7 @@ void TabRestoreService::LoadTabsFromLastSession() {
} else {
load_state_ |= LOADED_LAST_SESSION;
}
+#endif
// Request the tabs closed in the last session. If the last session crashed,
// this won't contain the tabs/window that were open at the point of the