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..110013b87f58edb14ee268de667c48a65da29bb1 100644 |
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
@@ -800,6 +800,8 @@ 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::TrimString(new_profile_name, base::ASCIIToUTF16(" "), |
sky
2014/08/15 04:38:41
Might it be possible to get other characters in th
noms (inactive)
2014/08/15 13:32:41
But if you paste it in, isn't it still in the text
sky
2014/08/15 19:28:37
Exactly.
|
+ &new_profile_name); |
if (new_profile_name.empty()) |
return true; |