Index: components/autofill/core/browser/autofill_profile.cc |
diff --git a/components/autofill/core/browser/autofill_profile.cc b/components/autofill/core/browser/autofill_profile.cc |
index b37acd50d1d7235aa1c112567167eba678981daa..fc3f39ef259b0e1c54be6dda1f67e2a2c2851ca5 100644 |
--- a/components/autofill/core/browser/autofill_profile.cc |
+++ b/components/autofill/core/browser/autofill_profile.cc |
@@ -707,10 +707,9 @@ base::string16 AutofillProfile::ConstructInferredLabel( |
} |
// Flatten the label if need be. |
- const base::char16 kNewline[] = { '\n', 0 }; |
- const base::string16 newline_separator = |
+ const base::string16& line_separator = |
l10n_util::GetStringUTF16(IDS_AUTOFILL_ADDRESS_LINE_SEPARATOR); |
- base::ReplaceChars(label, kNewline, newline_separator, &label); |
+ base::ReplaceChars(label, base::ASCIIToUTF16("\n"), line_separator, &label); |
return label; |
} |