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

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

Issue 176213002: [Autofill] A bit of cleanup in autofill_agent.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « no previous file | 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 85f4fad689dba9c397ecd85020a124a18a65f86d..9e48f16f9c57ff717b2c4759bb49e03134678e22 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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698