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

Unified Diff: components/password_manager/core/browser/password_autofill_manager.cc

Issue 614023002: [Password manager] Relplace the FormFieldData vector from autofill::FormData with named fields… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed FormData from PasswordFormFillData. Created 6 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/password_manager/core/browser/password_autofill_manager.cc
diff --git a/components/password_manager/core/browser/password_autofill_manager.cc b/components/password_manager/core/browser/password_autofill_manager.cc
index 01bf791bed010de8ddfda9ae442a1c79cb34dcd1..fc84a079113c65b494a7e9f75cb9ab15c007557f 100644
--- a/components/password_manager/core/browser/password_autofill_manager.cc
+++ b/components/password_manager/core/browser/password_autofill_manager.cc
@@ -151,8 +151,8 @@ bool PasswordAutofillManager::GetPasswordForUsername(
// fetch the actual password. See crbug.com/178358 for more context.
// Look for any suitable matches to current field text.
- if (fill_data.basic_data.fields[0].value == current_username) {
- *password = fill_data.basic_data.fields[1].value;
+ if (fill_data.username_field.value == current_username) {
+ *password = fill_data.password_field.value;
return true;
}

Powered by Google App Engine
This is Rietveld 408576698