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

Unified Diff: chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc

Issue 107273002: Merge 236134 "Ensure that the first browser window which is crea..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 years 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 | « ash/wm/window_positioner_unittest.cc ('k') | chrome/browser/ui/window_sizer/window_sizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc
===================================================================
--- chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc (revision 239045)
+++ chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.h"
#include "ash/shell.h"
+#include "ash/wm/window_positioner.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "chrome/browser/browser_process.h"
@@ -112,6 +113,9 @@
chrome::OpenAsh();
ash::Shell::GetInstance()->CreateLauncher();
ash::Shell::GetInstance()->ShowLauncher();
+ // On Windows 8 ASH we default to SHOW_STATE_MAXIMIZED for the browser
+ // window. This is to ensure that we honor metro app conventions by default.
+ ash::WindowPositioner::SetMaximizeFirstWindow(true);
// Tell the rest of Chrome that Ash is running.
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_ASH_SESSION_STARTED,
« no previous file with comments | « ash/wm/window_positioner_unittest.cc ('k') | chrome/browser/ui/window_sizer/window_sizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698