| Index: components/autofill/browser/autofill_profile.cc
|
| diff --git a/components/autofill/browser/autofill_profile.cc b/components/autofill/browser/autofill_profile.cc
|
| index 976cee9fa4418fe28b02e3d1198b808ea2117da0..a5be4169fb627dd0f851ded925f35d8843c261c0 100644
|
| --- a/components/autofill/browser/autofill_profile.cc
|
| +++ b/components/autofill/browser/autofill_profile.cc
|
| @@ -505,6 +505,10 @@ bool AutofillProfile::IsSubsetOf(const AutofillProfile& profile,
|
|
|
| void AutofillProfile::OverwriteWithOrAddTo(const AutofillProfile& profile,
|
| const std::string& app_locale) {
|
| + // Verified profiles should never be overwritten with unverified data.
|
| + DCHECK(!IsVerified() || profile.IsVerified());
|
| + set_origin(profile.origin());
|
| +
|
| FieldTypeSet field_types;
|
| profile.GetNonEmptyTypes(app_locale, &field_types);
|
|
|
|
|