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

Unified Diff: components/autofill/content/public/cpp/autofill_types_struct_traits.cc

Issue 2166773002: [Password Generation] Add FormFieldData.css_classes to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo Created 4 years, 5 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/public/cpp/autofill_types_struct_traits.cc
diff --git a/components/autofill/content/public/cpp/autofill_types_struct_traits.cc b/components/autofill/content/public/cpp/autofill_types_struct_traits.cc
index 0e2e33db951118fa5759f9c8f982f075c8a99d39..7104fd9c49f7c7f163374706f8c7645a9f021b8a 100644
--- a/components/autofill/content/public/cpp/autofill_types_struct_traits.cc
+++ b/components/autofill/content/public/cpp/autofill_types_struct_traits.cc
@@ -347,6 +347,9 @@ bool StructTraits<mojom::FormFieldData, FormFieldData>::Read(
if (!data.ReadPlaceholder(&out->placeholder))
return false;
+ if (!data.ReadCssClasses(&out->css_classes))
+ return false;
+
out->max_length = data.max_length();
out->is_autofilled = data.is_autofilled();

Powered by Google App Engine
This is Rietveld 408576698