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

Unified Diff: components/autofill/content/common/autofill_types_struct_traits.cc

Issue 2728353002: [Password Generation] Process CONFIRMATION_PASSWORD votes on the client side (Closed)
Patch Set: Changed usage of base::Optional Created 3 years, 9 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/content/common/autofill_types_struct_traits.cc
diff --git a/components/autofill/content/common/autofill_types_struct_traits.cc b/components/autofill/content/common/autofill_types_struct_traits.cc
index 1b3d8ab62146fb33376c50dda3577bb92d802008..055646e556b843db242922d520f2b253abc8a953 100644
--- a/components/autofill/content/common/autofill_types_struct_traits.cc
+++ b/components/autofill/content/common/autofill_types_struct_traits.cc
@@ -474,6 +474,12 @@ bool StructTraits<mojom::PasswordFormGenerationDataDataView,
PasswordFormGenerationData* out) {
out->form_signature = data.form_signature();
out->field_signature = data.field_signature();
+ if (data.has_confirmation_field()) {
+ out->confirmation_field_signature.emplace(
+ data.confirmation_field_signature());
+ } else {
+ DCHECK(!out->confirmation_field_signature);
+ }
return true;
}

Powered by Google App Engine
This is Rietveld 408576698