Index: components/autofill/core/common/autofill_data_validation.cc |
diff --git a/components/autofill/core/common/autofill_data_validation.cc b/components/autofill/core/common/autofill_data_validation.cc |
index c8f6584a430db08e33717e4c7234fe35c7d62bdc..578cc046c99be4b8caf3e4afe8f6279e68822384 100644 |
--- a/components/autofill/core/common/autofill_data_validation.cc |
+++ b/components/autofill/core/common/autofill_data_validation.cc |
@@ -59,9 +59,12 @@ bool IsValidFormData(const FormData& form) { |
} |
bool IsValidPasswordFormFillData(const PasswordFormFillData& form) { |
- if (!IsValidFormData(form.basic_data) || |
- !IsValidString(form.preferred_realm)) |
+ if (!IsValidString16(form.name) || !IsValidGURL(form.origin) || |
+ !IsValidGURL(form.action) || !IsValidFormFieldData(form.username_field) || |
+ !IsValidFormFieldData(form.password_field) || |
+ !IsValidString(form.preferred_realm)) { |
return false; |
+ } |
for (PasswordFormFillData::LoginCollection::const_iterator it = |
form.additional_logins.begin(); |