| 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 7c3d6e45599ec459780301f5f70b40f511fd8e0c..1783a3ed35272d1bf38e172cc8f93279a5a6adf1 100644
|
| --- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
| +++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
| @@ -800,6 +800,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;
|
|
|
|
|