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

Unified Diff: headless/lib/browser/headless_screen.cc

Issue 2199773002: headless: make initial screen/window sizes configurable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix constexpr, reference to screen_size in test. Created 4 years, 4 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 | « headless/lib/browser/headless_screen.h ('k') | headless/lib/browser/headless_web_contents_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_screen.cc
diff --git a/headless/lib/browser/headless_screen.cc b/headless/lib/browser/headless_screen.cc
index e7be71a515bc0dcd4cb19b49a16d1f87a963bf0e..c8be18bfdb1804dab9c759e8c04d70a924dcdd2b 100644
--- a/headless/lib/browser/headless_screen.cc
+++ b/headless/lib/browser/headless_screen.cc
@@ -30,8 +30,7 @@ bool IsRotationPortrait(display::Display::Rotation rotation) {
// static
HeadlessScreen* HeadlessScreen::Create(const gfx::Size& size) {
- const gfx::Size kDefaultSize(800, 600);
- return new HeadlessScreen(gfx::Rect(size.IsEmpty() ? kDefaultSize : size));
+ return new HeadlessScreen(gfx::Rect(size));
}
HeadlessScreen::~HeadlessScreen() {}
« no previous file with comments | « headless/lib/browser/headless_screen.h ('k') | headless/lib/browser/headless_web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698