0

Add a DCHECK for NULL frame pointers in PasswordAutofillAgent

This is to help investigating a clusterfuzz crash, but should stay permanently to document the expectations.

BUG=399215

Review URL: https://codereview.chromium.org/432863003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287163 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
vabr@chromium.org
2014-08-02 06:05:04 +00:00
parent d89c2ca66b
commit 994e6f0bbe

@ -1109,6 +1109,7 @@ void PasswordAutofillAgent::ProvisionallySavePassword(
blink::WebLocalFrame* frame,
const blink::WebFormElement& form,
ProvisionallySaveRestriction restriction) {
DCHECK(frame);
scoped_ptr<PasswordForm> password_form(CreatePasswordForm(form));
if (!password_form || (restriction == RESTRICTION_NON_EMPTY_PASSWORD &&
password_form->password_value.empty() &&