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

Unified Diff: ash/test/ash_test_base.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 | « no previous file | ash/wm/window_positioner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_base.cc
===================================================================
--- ash/test/ash_test_base.cc (revision 239045)
+++ ash/test/ash_test_base.cc (working copy)
@@ -17,6 +17,7 @@
#include "ash/test/test_session_state_delegate.h"
#include "ash/test/test_shell_delegate.h"
#include "ash/wm/coordinate_conversion.h"
+#include "ash/wm/window_positioner.h"
#include "base/command_line.h"
#include "content/public/test/web_contents_tester.h"
#include "ui/aura/client/aura_constants.h"
@@ -128,20 +129,22 @@
ash::Shell::GetInstance()->cursor_manager()->EnableMouseEvents();
#if defined(OS_WIN)
- if (base::win::GetVersion() >= base::win::VERSION_WIN8 &&
- !command_line->HasSwitch(ash::switches::kForceAshToDesktop)) {
- ipc_thread_.reset(new base::Thread("test_metro_viewer_ipc_thread"));
- base::Thread::Options options;
- options.message_loop_type = base::MessageLoop::TYPE_IO;
- ipc_thread_->StartWithOptions(options);
-
- metro_viewer_host_.reset(
- new TestMetroViewerProcessHost(ipc_thread_->message_loop_proxy()));
- CHECK(metro_viewer_host_->LaunchViewerAndWaitForConnection(
- win8::test::kDefaultTestAppUserModelId));
- aura::RemoteRootWindowHostWin* root_window_host =
- aura::RemoteRootWindowHostWin::Instance();
- CHECK(root_window_host != NULL);
+ if (!command_line->HasSwitch(ash::switches::kForceAshToDesktop)) {
+ if (base::win::GetVersion() >= base::win::VERSION_WIN8) {
+ ipc_thread_.reset(new base::Thread("test_metro_viewer_ipc_thread"));
+ base::Thread::Options options;
+ options.message_loop_type = base::MessageLoop::TYPE_IO;
+ ipc_thread_->StartWithOptions(options);
+ metro_viewer_host_.reset(
+ new TestMetroViewerProcessHost(ipc_thread_->message_loop_proxy()));
+ CHECK(metro_viewer_host_->LaunchViewerAndWaitForConnection(
+ win8::test::kDefaultTestAppUserModelId,
+ L"test_open"));
+ aura::RemoteRootWindowHostWin* root_window_host =
+ aura::RemoteRootWindowHostWin::Instance();
+ CHECK(root_window_host != NULL);
+ }
+ ash::WindowPositioner::SetMaximizeFirstWindow(true);
}
#endif
}
« no previous file with comments | « no previous file | ash/wm/window_positioner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698