Chromium Code Reviews| Index: components/autofill/core/browser/address_i18n.cc |
| diff --git a/components/autofill/core/browser/address_i18n.cc b/components/autofill/core/browser/address_i18n.cc |
| index 24af61ae1a37a47030b35df8116bbfdd40952466..cedcf5563abfa56b2b0007dda4144712b9fd5041 100644 |
| --- a/components/autofill/core/browser/address_i18n.cc |
| +++ b/components/autofill/core/browser/address_i18n.cc |
| @@ -48,11 +48,10 @@ scoped_ptr<AddressData> CreateAddressData( |
| get_info.Run(AutofillType(ADDRESS_HOME_SORTING_CODE))); |
| address_data->postal_code = base::UTF16ToUTF8( |
| get_info.Run(AutofillType(ADDRESS_HOME_ZIP))); |
| - base::SplitString( |
| + address_data->address_line = base::SplitString( |
| base::UTF16ToUTF8( |
| get_info.Run(AutofillType(ADDRESS_HOME_STREET_ADDRESS))), |
| - '\n', |
| - &address_data->address_line); |
| + "\n", base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL); |
|
yzshen1
2015/07/22 22:38:23
TRIM_WHITESPACE?
|
| return address_data.Pass(); |
| } |