Index: chrome/browser/ui/views/autofill/expanding_textfield.cc |
diff --git a/chrome/browser/ui/views/autofill/expanding_textfield.cc b/chrome/browser/ui/views/autofill/expanding_textfield.cc |
index 147742b91f27fd6ee0219e95750e91d4ce860f88..c7957d58fea68fff5752bf651e401d49870c6363 100644 |
--- a/chrome/browser/ui/views/autofill/expanding_textfield.cc |
+++ b/chrome/browser/ui/views/autofill/expanding_textfield.cc |
@@ -50,8 +50,9 @@ ExpandingTextfield::~ExpandingTextfield() {} |
void ExpandingTextfield::SetText(const base::string16& text) { |
textfields_.front()->SetText(text); |
- std::vector<base::string16> strings; |
- base::SplitStringDontTrim(text, '\n', &strings); |
+ std::vector<base::string16> strings = base::SplitString( |
+ text, base::string16(1, '\n'), |
+ base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL); |
size_t i = 0; |
for (std::list<DecoratedTextfield*>::iterator iter = textfields_.begin(); |