diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/autofill/content/renderer/autofill_agent.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc index 85f4fad..9e48f16 100644 --- a/components/autofill/content/renderer/autofill_agent.cc +++ b/components/autofill/content/renderer/autofill_agent.cc @@ -609,10 +609,7 @@ void AutofillAgent::FillAutofillFormData(const WebNode& node, void AutofillAgent::SetNodeText(const base::string16& value, blink::WebInputElement* node) { did_set_node_text_ = true; - base::string16 substring = value; - substring = substring.substr(0, node->maxLength()); - - node->setEditingValue(substring); + node->setEditingValue(value.substr(0, node->maxLength())); } void AutofillAgent::HideAutofillUI() { |