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; |
} |