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..4bb098173e2b938e7a21417865e1785057d170bd 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 piecemeal. |
+ DCHECK(!IsVerified()); |
+ set_origin(profile.origin()); |
+ |
FieldTypeSet field_types; |
profile.GetNonEmptyTypes(app_locale, &field_types); |