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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_impl.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix other os's Created 8 years, 2 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
Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
index 56ee777d2b072bc5b3b55fb1c346a539c432388a..1fcab65727e342ce767d82afea53c5226bb1359b 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
@@ -441,7 +441,8 @@ void StartupBrowserCreatorImpl::ExtractOptionalAppWindowSize(
std::string switch_value =
command_line_.GetSwitchValueASCII(switches::kAppWindowSize);
if (ParseCommaSeparatedIntegers(switch_value, &width, &height)) {
- const gfx::Rect work_area = gfx::Screen::GetPrimaryDisplay().work_area();
+ const gfx::Rect work_area = gfx::Screen::GetPrimaryDisplay(
+ gfx::Screen::BadTwoWorldsContext()).work_area();
oshima 2012/10/04 20:18:26 I guess session restore has to remember in which s
width = std::min(width, work_area.width());
height = std::min(height, work_area.height());
bounds->set_size(gfx::Size(width, height));

Powered by Google App Engine
This is Rietveld 408576698