Commit ee23e932 authored by Elizabeth Popova's avatar Elizabeth Popova Committed by Commit Bot

[Autofill] Fix returning identified street & house number fields

As part of AutofillEnableSupportForMoreStructureInAddresses feature several new field types were introduced. Proior this change they were identified using regex but never counted as found because AddressField::Parse returned nullptr.

Bug: 1137796
Change-Id: Idaa8d6d62faed5c593ca447739ecff3819fdc151
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2465843Reviewed-by: default avatarMatthias Körber <koerber@google.com>
Reviewed-by: default avatarChristoph Schwering <schwering@google.com>
Commit-Queue: Elizabeth Popova <lizapopova@google.com>
Cr-Commit-Position: refs/heads/master@{#816564}
parent 57f8507b
......@@ -122,6 +122,7 @@ std::unique_ptr<FormField> AddressField::Parse(AutofillScanner* scanner,
address_field->address2_ || address_field->address3_ ||
address_field->street_address_ || address_field->city_ ||
address_field->state_ || address_field->zip_ || address_field->zip4_ ||
address_field->street_name_ || address_field->house_number_ ||
address_field->country_) {
// Don't slurp non-labeled fields at the end into the address.
if (has_trailing_non_labeled_fields)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment