Index: chrome/browser/chromeos/login/helper.cc |
diff --git a/chrome/browser/chromeos/login/helper.cc b/chrome/browser/chromeos/login/helper.cc |
index 56a3f549a63647fc0ab5b784aab1b9d169d69fba..865280315ddd0726f49f52a32bf3c824dd0cda73 100644 |
--- a/chrome/browser/chromeos/login/helper.cc |
+++ b/chrome/browser/chromeos/login/helper.cc |
@@ -87,8 +87,7 @@ content::StoragePartition* GetPartition(content::WebContents* embedder, |
} // namespace |
gfx::Rect CalculateScreenBounds(const gfx::Size& size) { |
- gfx::Rect bounds = |
- gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().bounds(); |
+ gfx::Rect bounds = gfx::Screen::GetScreen()->GetPrimaryDisplay().bounds(); |
if (!size.IsEmpty()) { |
int horizontal_diff = bounds.width() - size.width(); |
int vertical_diff = bounds.height() - size.height(); |