| Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
| diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
| index 781f3f173e2e9863f1691f0435262da732b13868..c143a400327beebdd77a01eee6b214352ca8fb9d 100644
|
| --- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
| +++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
| @@ -799,6 +799,7 @@ bool ProfileChooserView::HandleKeyEvent(views::Textfield* sender,
|
| key_event.key_code() == ui::VKEY_TAB) {
|
| // Pressing Tab/Enter commits the new profile name, unless it's empty.
|
| base::string16 new_profile_name = name_textfield->text();
|
| + base::TrimWhitespace(new_profile_name, base::TRIM_ALL, &new_profile_name);
|
| if (new_profile_name.empty())
|
| return true;
|
|
|
|
|