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

Unified Diff: components/autofill/core/browser/form_structure.cc

Issue 2937033002: [Password Generation] Send a boolean flag of whether user changed generated password (Closed)
Patch Set: Changes addressed to vabr@ comments Created 3 years, 6 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/browser/form_structure.cc
diff --git a/components/autofill/core/browser/form_structure.cc b/components/autofill/core/browser/form_structure.cc
index 10a8380908cc2daec7c1ec7c999bd8b48794d84d..4319c2376b240b027596fa9ecd26be72af5bc6dd 100644
--- a/components/autofill/core/browser/form_structure.cc
+++ b/components/autofill/core/browser/form_structure.cc
@@ -1098,8 +1098,11 @@ void FormStructure::EncodeFormForUpload(AutofillUploadContents* upload) const {
AutofillUploadContents::Field* added_field = upload->add_field();
added_field->set_autofill_type(field_type);
- if (field->generation_type())
+ if (field->generation_type()) {
added_field->set_generation_type(field->generation_type());
+ added_field->set_generated_password_changed(
+ field->generated_password_changed());
+ }
if (field->form_classifier_outcome()) {
added_field->set_form_classifier_outcome(
« no previous file with comments | « components/autofill/core/browser/autofill_field.h ('k') | components/autofill/core/browser/form_structure_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698