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

Unified Diff: components/autofill/content/renderer/autofill_agent.cc

Issue 1169393003: Add new SplitString backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « base/strings/string_util_constants.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/renderer/autofill_agent.cc
diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc
index b6686c3cb5eb678c7b96f121ea07cdef8f133984..b93b00f6d256ad2897223052d792ce001a4f2b77 100644
--- a/components/autofill/content/renderer/autofill_agent.cc
+++ b/components/autofill/content/renderer/autofill_agent.cc
@@ -485,7 +485,8 @@ void AutofillAgent::AcceptDataListSuggestion(
if (input_element->isMultiple() && input_element->isEmailField()) {
std::vector<base::string16> parts;
- base::SplitStringDontTrim(input_element->editingValue(), ',', &parts);
+ base::SplitStringDontTrim(
+ base::StringPiece16(input_element->editingValue()), ',', &parts);
if (parts.size() == 0)
parts.push_back(base::string16());
« no previous file with comments | « base/strings/string_util_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698