Index: chrome/browser/sessions/session_service.cc |
diff --git a/chrome/browser/sessions/session_service.cc b/chrome/browser/sessions/session_service.cc |
index dbb0f949aff8a1ea5b222537c0242cd58988f27c..8e3f1d7372648a7b67c9d1513509979dcf34a73e 100644 |
--- a/chrome/browser/sessions/session_service.cc |
+++ b/chrome/browser/sessions/session_service.cc |
@@ -970,9 +970,11 @@ bool SessionService::CreateTabsAndWindows( |
payload.y, |
payload.w, |
payload.h); |
+ // SHOW_STATE_INACTIVE is not persisted. |
ui::WindowShowState show_state = ui::SHOW_STATE_NORMAL; |
if (payload.show_state > ui::SHOW_STATE_DEFAULT && |
- payload.show_state < ui::SHOW_STATE_MAX) { |
+ payload.show_state < ui::SHOW_STATE_MAX && |
+ payload.show_state != ui::SHOW_STATE_INACTIVE) { |
show_state = static_cast<ui::WindowShowState>(payload.show_state); |
} else { |
NOTREACHED(); |