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

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: Added TODO 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
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/ui/app_list/extension_app_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/ui/app_list/extension_app_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698