Index: components/autofill/content/renderer/password_autofill_agent.cc |
diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc |
index d23bbf1242dfed1c24e2b018cfc50db8a070bba8..b5ac6439b9ca1978199292fe0cf524585715d1d9 100644 |
--- a/components/autofill/content/renderer/password_autofill_agent.cc |
+++ b/components/autofill/content/renderer/password_autofill_agent.cc |
@@ -672,6 +672,7 @@ blink::WebFrame* PasswordAutofillAgent::CurrentOrChildFrameWithSavedForms( |
it != provisionally_saved_forms_.end(); |
++it) { |
blink::WebFrame* form_frame = it->first; |
+ DCHECK(form_frame); |
Ilya Sherman
2014/08/01 18:42:39
This is dereferenced on line 683 below, so I'm not
vabr (Chromium)
2014/08/01 19:10:13
Fair point, I removed it.
|
// The check that the returned frame is related to |current_frame| is mainly |
// for double-checking. There should not be any unrelated frames in |
// |provisionally_saved_forms_|, because the map is cleared after |
@@ -1109,6 +1110,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() && |