[Autofill] Restored FormStructure/FormData/FormDataPredictions duality.
The duality between FormStructure and FormData is reflected by FormStructure(const FormData&) and FormStructure::toFormData(). The relation extends to FormDataPredictions, which has a FormData member. This CL makes FormStructure:toFormData() and FormStructure::GetFieldTypePredictions() initialize all members shared among FormStructure and FormData and FormDataPredictions. More precisely, before this CL, (1) FormStructure::toFormData() didn't copy several of the members shared by FormStructure and FormData. (2) FormStructure::GetFieldTypePredictions() didn't set several of the members shared by FormStructure and FormDataPredictions's FormData and didn't set FormFieldDataPredictions's FormFieldData. Bug: 1087194 Change-Id: If0b833b52ede4d3ac86aad5c46fefd84c99cba47 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2218829Reviewed-by:Dominic Battré <battre@chromium.org> Commit-Queue: Christoph Schwering <schwering@google.com> Cr-Commit-Position: refs/heads/master@{#772620}
Showing
Please register or sign in to comment