| Index: chrome/browser/chromeos/login/guest_user_view.cc
|
| diff --git a/chrome/browser/chromeos/login/guest_user_view.cc b/chrome/browser/chromeos/login/guest_user_view.cc
|
| index c26db80980d3af85d7ff795c6cebb2ba6dfa46e4..44dac3b22bd63fc400fe087e91a2c7162d616752 100644
|
| --- a/chrome/browser/chromeos/login/guest_user_view.cc
|
| +++ b/chrome/browser/chromeos/login/guest_user_view.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/chromeos/login/guest_user_view.h"
|
|
|
| #include "app/l10n_util.h"
|
| +#include "chrome/browser/chromeos/login/helper.h"
|
| #include "chrome/browser/chromeos/login/user_controller.h"
|
| #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h"
|
| #include "grit/generated_resources.h"
|
| @@ -64,6 +65,7 @@ void GuestUserView::RecreateFields() {
|
| submit_button_ = new UserEntryButton(
|
| user_controller_,
|
| l10n_util::GetString(IDS_LOGIN_BUTTON));
|
| + login::CorrectNativeButtonFontSize(submit_button_);
|
| AddChildView(submit_button_);
|
| Layout();
|
| SchedulePaint();
|
| @@ -102,11 +104,13 @@ void GuestUserView::OnLocaleChanged() {
|
|
|
| void GuestUserView::Layout() {
|
| gfx::Size submit_button_size = submit_button_->GetPreferredSize();
|
| - int submit_button_x = (width() - submit_button_size.width()) / 2;
|
| + int submit_button_width = std::max(login::kButtonMinWidth,
|
| + submit_button_size.width());
|
| + int submit_button_x = (width() - submit_button_width) / 2;
|
| int submit_button_y = (height() - submit_button_size.height()) / 2;
|
| submit_button_->SetBounds(submit_button_x,
|
| submit_button_y,
|
| - submit_button_size.width(),
|
| + submit_button_width,
|
| submit_button_size.height());
|
| }
|
|
|
|
|