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

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

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.h
diff --git a/components/autofill/content/common/autofill_types_struct_traits.h b/components/autofill/content/common/autofill_types_struct_traits.h
index f5156bb888d69856d0259630f5b7c5e4f9da1fbc..cbe687abe4193a86b2a36d810eee4c1383bb1e64 100644
--- a/components/autofill/content/common/autofill_types_struct_traits.h
+++ b/components/autofill/content/common/autofill_types_struct_traits.h
@@ -372,6 +372,16 @@ struct StructTraits<autofill::mojom::PasswordFormGenerationDataDataView,
return r.field_signature;
}
+ static bool has_confirmation_field(
+ const autofill::PasswordFormGenerationData& r) {
+ return r.confirmation_field_signature.has_value();
+ }
+
+ static uint32_t confirmation_field_signature(
+ const autofill::PasswordFormGenerationData& r) {
+ return r.confirmation_field_signature.value_or(0);
+ }
+
static bool Read(autofill::mojom::PasswordFormGenerationDataDataView data,
autofill::PasswordFormGenerationData* out);
};

Powered by Google App Engine
This is Rietveld 408576698