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 ee3aa01693edd4681af31c8a4d160665857b7337..7d4c03035427ec97cd496d13f90986d53dd14d98 100644 |
--- a/components/autofill/content/common/autofill_types_struct_traits.h |
+++ b/components/autofill/content/common/autofill_types_struct_traits.h |
@@ -387,8 +387,8 @@ struct StructTraits<autofill::mojom::PasswordFormDataView, |
return r.username_value; |
} |
- static const std::vector<base::string16>& other_possible_usernames( |
- const autofill::PasswordForm& r) { |
+ static const std::vector<autofill::PossibleUsernamePair>& |
+ other_possible_usernames(const autofill::PasswordForm& r) { |
return r.other_possible_usernames; |
} |
@@ -557,6 +557,21 @@ struct StructTraits<autofill::mojom::FormsPredictionsMapDataView, |
autofill::FormsPredictionsMap* out); |
}; |
+template <> |
+struct StructTraits<autofill::mojom::PossibleUsernamePairDataView, |
+ autofill::PossibleUsernamePair> { |
+ static base::string16 value(const autofill::PossibleUsernamePair& r) { |
+ return r.first; |
+ } |
+ |
+ static base::string16 field_name(const autofill::PossibleUsernamePair& r) { |
+ return r.second; |
+ } |
+ |
+ static bool Read(autofill::mojom::PossibleUsernamePairDataView data, |
+ autofill::PossibleUsernamePair* out); |
+}; |
+ |
} // namespace mojo |
#endif // COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_TYPES_STRUCT_TRAITS_H_ |