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

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

Issue 79103002: Abstracted AcceptPasswordAutofillSuggestion IPC out of core Autofill code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes. Created 7 years, 1 month 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: components/autofill/content/renderer/password_autofill_agent.cc
diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc
index 279175246a83f3212d82a9571eb689e31adefc04..571b53cb975c9d81f9f33901dd5bb0741ee83e08 100644
--- a/components/autofill/content/renderer/password_autofill_agent.cc
+++ b/components/autofill/content/renderer/password_autofill_agent.cc
@@ -290,15 +290,15 @@ bool PasswordAutofillAgent::TextFieldHandlingKeyDown(
bool PasswordAutofillAgent::DidAcceptAutofillSuggestion(
const blink::WebNode& node,
- const blink::WebString& value) {
+ const blink::WebString& username) {
blink::WebInputElement input;
PasswordInfo password;
if (!FindLoginInfo(node, &input, &password))
return false;
- // Set the incoming |value| in the text field and |FillUserNameAndPassword|
+ // Set the incoming |username| in the text field and |FillUserNameAndPassword|
// will do the rest.
- input.setValue(value, true);
+ input.setValue(username, true);
return FillUserNameAndPassword(&input, &password.password_field,
password.fill_data,
true /* exact_username_match */,

Powered by Google App Engine
This is Rietveld 408576698