| Index: components/autofill/core/browser/form_group.cc
|
| diff --git a/components/autofill/core/browser/form_group.cc b/components/autofill/core/browser/form_group.cc
|
| index 417f08a9043b10b0fefafe85c51968dbf3b49d3e..1f248ccf94e48d891670182804304930e3fc97d3 100644
|
| --- a/components/autofill/core/browser/form_group.cc
|
| +++ b/components/autofill/core/browser/form_group.cc
|
| @@ -57,4 +57,14 @@ bool FormGroup::SetInfo(const AutofillType& type,
|
| return true;
|
| }
|
|
|
| +bool FormGroup::HasInfo(ServerFieldType type) const {
|
| + return HasInfo(AutofillType(type));
|
| +}
|
| +
|
| +bool FormGroup::HasInfo(const AutofillType& type) const {
|
| + // Use "en-US" as a placeholder locale. We are only interested in emptiness,
|
| + // not in the presentation of the string.
|
| + return !GetInfo(type, "en-US").empty();
|
| +}
|
| +
|
| } // namespace autofill
|
|
|