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 451b0e5c5b8b01fc7719ceb7a846a9a56cd9f499..e464d715acd88ce89fefcec0d5709f91a78424a3 100644 |
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc |
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc |
@@ -441,7 +441,9 @@ 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(); |
+ // TODO(scottmg): NativeScreen might be wrong. http://crbug.com/133312 |
+ const gfx::Rect work_area = |
+ gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().work_area(); |
width = std::min(width, work_area.width()); |
height = std::min(height, work_area.height()); |
bounds->set_size(gfx::Size(width, height)); |