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

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

Issue 3201003: Fixed error message bubbles according to the latest mocks (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Comments resolved Created 10 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/login/user_controller.h ('k') | views/view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « chrome/browser/chromeos/login/user_controller.h ('k') | views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698