Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1125)

Unified Diff: components/autofill/core/browser/address.cc

Issue 1234973004: Update SplitString calls in components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/address.cc
diff --git a/components/autofill/core/browser/address.cc b/components/autofill/core/browser/address.cc
index 389bed2ad828aa0f64eda7a30c123b39d7a13c89..2cf5f51d2f5a3ea4f9629dc2f8f806ce70ea6d8b 100644
--- a/components/autofill/core/browser/address.cc
+++ b/components/autofill/core/browser/address.cc
@@ -130,7 +130,9 @@ void Address::SetRawInfo(ServerFieldType type, const base::string16& value) {
break;
case ADDRESS_HOME_STREET_ADDRESS:
- base::SplitString(value, base::char16('\n'), &street_address_);
+ street_address_ = base::SplitString(
+ value, base::ASCIIToUTF16("\n"),
+ base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
break;
default:
« no previous file with comments | « components/autofill/content/renderer/autofill_agent.cc ('k') | components/autofill/core/browser/address_i18n.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698