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

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: git try 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..c329ab4115a4ce82dc629eae9d8f9febb76c7504 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,6 +1036,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())
+ show_state = ui::SHOW_STATE_MAXIMIZED;
+#endif
params.initial_show_state = show_state;
params.is_session_restore = true;
return new Browser(params);

Powered by Google App Engine
This is Rietveld 408576698