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

Unified Diff: chrome/browser/ui/webui/options/autofill_options_handler.cc

Issue 2356253006: Make SplitStringUsingSubstr have consistent args. (Closed)
Patch Set: Created 4 years, 3 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: chrome/browser/ui/webui/options/autofill_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.cc b/chrome/browser/ui/webui/options/autofill_options_handler.cc
index c23b1a7e881b6bce602944166451c5cc5a0a6380..33291c8254c930d8695edc9e3bc0012e139448eb 100644
--- a/chrome/browser/ui/webui/options/autofill_options_handler.cc
+++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc
@@ -346,8 +346,8 @@ void AutofillOptionsHandler::LoadAutofillData() {
base::string16 separator =
l10n_util::GetStringUTF16(IDS_AUTOFILL_ADDRESS_SUMMARY_SEPARATOR);
- std::vector<base::string16> label_parts;
- base::SplitStringUsingSubstr(labels[i], separator, &label_parts);
+ std::vector<base::string16> label_parts = base::SplitStringUsingSubstr(
+ labels[i], separator, base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue);
value->SetString("guid", profiles[i]->guid());
« no previous file with comments | « chrome/browser/metrics/perf/perf_provider_chromeos.cc ('k') | chrome/common/chrome_content_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698