Index: chrome/browser/sessions/session_restore.cc |
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc |
index 3ff94979ed11f6118d5755f63e5fa8ba68ba9ba2..4c7d2612af0fcdd7862ad5e5041e67464d110c3d 100644 |
--- a/chrome/browser/sessions/session_restore.cc |
+++ b/chrome/browser/sessions/session_restore.cc |
@@ -60,6 +60,7 @@ |
#endif |
#if defined(USE_ASH) |
+#include "ash/shell.h" |
#include "ash/wm/window_util.h" |
#endif |
using content::NavigationController; |
@@ -1041,6 +1042,10 @@ class SessionRestoreImpl : public content::NotificationObserver { |
Browser::CreateParams params(type, profile_, host_desktop_type_); |
params.app_name = app_name; |
params.initial_bounds = bounds; |
+#if defined(USE_ASH) |
+ if (ash::Shell::IsForcedMaximizeMode()) |
sky
2013/04/24 00:31:59
It seems like we shouldn't have to patch all the c
|
+ show_state = ui::SHOW_STATE_MAXIMIZED; |
+#endif |
params.initial_show_state = show_state; |
params.is_session_restore = true; |
return new Browser(params); |