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

Unified Diff: chrome/test/base/in_process_browser_test.cc

Issue 1360233005: Set the browser window bounds to fit to the Xvfb's size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't set if already set Created 5 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/in_process_browser_test.cc
diff --git a/chrome/test/base/in_process_browser_test.cc b/chrome/test/base/in_process_browser_test.cc
index 5b83e3b544deefeb6b39b50cb1fb1bfa839e1f0d..5237471b5ea34d12d1081212292c03b98eab174f 100644
--- a/chrome/test/base/in_process_browser_test.cc
+++ b/chrome/test/base/in_process_browser_test.cc
@@ -4,6 +4,7 @@
#include "chrome/test/base/in_process_browser_test.h"
+#include "ash/ash_switches.h"
#include "base/auto_reset.h"
#include "base/basictypes.h"
#include "base/bind.h"
@@ -233,6 +234,12 @@ void InProcessBrowserTest::SetUp() {
base::CreateDirectory(log_dir);
// Disable IME extension loading to avoid many browser tests failures.
chromeos::input_method::DisableExtensionLoading();
+ if (!command_line->HasSwitch(ash::switches::kAshHostWindowBounds)) {
+ // Adjusting window location & size so that the ash desktop window fits
+ // inside the Xvfb'x defualt resolution.
+ command_line->AppendSwitchASCII(ash::switches::kAshHostWindowBounds,
+ "0+0-1280x800");
+ }
#endif // defined(OS_CHROMEOS)
#if defined(OS_MACOSX)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698