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

Unified Diff: components/autofill/core/common/password_form_fill_data.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: Incorporated review inputs. Created 6 years, 2 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
Index: components/autofill/core/common/password_form_fill_data.cc
diff --git a/components/autofill/core/common/password_form_fill_data.cc b/components/autofill/core/common/password_form_fill_data.cc
index 7dbc97d0ab62b42dc7b158bcea47b663d7fcd149..a8383d70eaa90f3d6120028074d35cfceab26453 100644
--- a/components/autofill/core/common/password_form_fill_data.cc
+++ b/components/autofill/core/common/password_form_fill_data.cc
@@ -50,8 +50,8 @@ void InitPasswordFormFillData(
// Fill basic form data.
result->basic_data.origin = form_on_page.origin;
result->basic_data.action = form_on_page.action;
Ilya Sherman 2014/10/13 23:49:32 It looks like this class really shouldn't depend o
Pritam Nikam 2014/10/16 12:55:13 Sure, I'll take care this in next patch set. Still
- result->basic_data.fields.push_back(username_field);
- result->basic_data.fields.push_back(password_field);
+ result->basic_data.username = username_field;
+ result->basic_data.password = password_field;
result->wait_for_username = wait_for_username_before_autofill;
result->preferred_realm = preferred_match->original_signon_realm;

Powered by Google App Engine
This is Rietveld 408576698