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

Unified Diff: chrome/browser/chromeos/login/helper.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 8 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/chromeos/login/helper.cc
diff --git a/chrome/browser/chromeos/login/helper.cc b/chrome/browser/chromeos/login/helper.cc
index b435243de860526446962ed2e306da11348dc115..439ccbb2009c3882368dfb6d7fe6c8f6300cfba6 100644
--- a/chrome/browser/chromeos/login/helper.cc
+++ b/chrome/browser/chromeos/login/helper.cc
@@ -54,7 +54,7 @@ views::Throbber* CreateDefaultThrobber() {
}
gfx::Rect CalculateScreenBounds(const gfx::Size& size) {
- gfx::Rect bounds(gfx::Screen::GetMonitorAreaNearestWindow(NULL));
+ gfx::Rect bounds(gfx::Screen::GetPrimaryMonitor().bounds());
if (!size.IsEmpty()) {
int horizontal_diff = bounds.width() - size.width();
int vertical_diff = bounds.height() - size.height();

Powered by Google App Engine
This is Rietveld 408576698