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

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 13934007: Adding experimental maximize mode (behind a flag) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few self nits Created 7 years, 8 months 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
Index: chrome/browser/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index 8e65c18c5e1e1843cc3b0cc57464e30d535c1de9..45264b9227fd8ef24e22b14e741c479a46537306 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;
@@ -1035,7 +1036,12 @@ class SessionRestoreImpl : public content::NotificationObserver {
Browser::CreateParams params(type, profile_, host_desktop_type_);
params.app_name = app_name;
params.initial_bounds = bounds;
- params.initial_show_state = show_state;
+#if defined(USE_ASH)
+ if (ash::Shell::IsForcedMaximizeMode())
+ params.initial_show_state = ui::SHOW_STATE_MAXIMIZED;
+ else
+#endif
James Cook 2013/04/22 22:15:46 #ifdefs that mess with indentation I find hard to
Mr4D (OOO till 08-26) 2013/04/23 04:41:28 I tried to avoid that. However since you want it:
+ params.initial_show_state = show_state;
params.is_session_restore = true;
return new Browser(params);
}

Powered by Google App Engine
This is Rietveld 408576698