Index: chrome/browser/chromeos/login/user_controller.cc |
diff --git a/chrome/browser/chromeos/login/user_controller.cc b/chrome/browser/chromeos/login/user_controller.cc |
index 52fb5e3b03e94d3d712a9a20f5119f5400d6abdc..75ba03f8d0da8792671ead3a072237efa8cc92f8 100644 |
--- a/chrome/browser/chromeos/login/user_controller.cc |
+++ b/chrome/browser/chromeos/login/user_controller.cc |
@@ -387,17 +387,10 @@ WidgetGtk* UserController::CreateLabelWindow(int index, |
} |
gfx::Rect UserController::GetScreenBounds() const { |
- if (is_guest_) { |
- return new_user_view_->GetPasswordBounds(); |
- } else { |
- gfx::Rect screen_bounds(existing_user_view_->password_field()->bounds()); |
- gfx::Point origin(screen_bounds.origin()); |
- views::View::ConvertPointToScreen( |
- existing_user_view_->password_field()->GetParent(), |
- &origin); |
- screen_bounds.set_origin(origin); |
- return screen_bounds; |
- } |
+ if (is_guest_) |
+ return new_user_view_->GetUsernameBounds(); |
+ else |
+ return existing_user_view_->password_field()->GetScreenBounds(); |
} |
void UserController::OnLogin(const std::string& username, |