| Index: chrome/browser/ui/views/login_view.cc
|
| diff --git a/chrome/browser/ui/views/login_view.cc b/chrome/browser/ui/views/login_view.cc
|
| index 4c97c282eac3c91d01974249fb8a6ddab92a9dd2..b109a5bf08feba36738f02f5c4bcf74df43e07a0 100644
|
| --- a/chrome/browser/ui/views/login_view.cc
|
| +++ b/chrome/browser/ui/views/login_view.cc
|
| @@ -11,8 +11,13 @@
|
| #include "ui/views/layout/grid_layout.h"
|
| #include "ui/views/layout/layout_constants.h"
|
|
|
| +#if defined(OS_MACOSX)
|
| +static const int kMessageWidth = 365;
|
| +static const int kTextfieldStackHorizontalSpacing = 10;
|
| +#else
|
| static const int kMessageWidth = 320;
|
| static const int kTextfieldStackHorizontalSpacing = 30;
|
| +#endif
|
|
|
| using password_manager::LoginModel;
|
| using views::GridLayout;
|
| @@ -73,7 +78,12 @@ LoginView::LoginView(const base::string16& explanation,
|
| layout->AddView(password_label_);
|
| layout->AddView(password_field_);
|
|
|
| +#if !defined(OS_MACOSX)
|
| + // TODO(tapted): Is this ever needed? DialogClientView already adds
|
| + // kRelatedControlVerticalSpacing to account for padding between the password
|
| + // field and the buttons.
|
| layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing);
|
| +#endif
|
|
|
| if (login_model_)
|
| login_model_->AddObserver(this);
|
|
|