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 e85a4c27e0c41bfd444e5631ac90675f141c9915..3745a0190a1724250408b40b89e859783acbf6b7 100644 |
--- a/components/autofill/content/renderer/password_autofill_agent.cc |
+++ b/components/autofill/content/renderer/password_autofill_agent.cc |
@@ -1224,6 +1224,10 @@ void PasswordAutofillAgent::WillSubmitForm(const blink::WebFormElement& form) { |
} |
} |
+void PasswordAutofillAgent::OnDestruct() { |
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); |
+} |
+ |
void PasswordAutofillAgent::DidStartProvisionalLoad() { |
std::unique_ptr<RendererSavePasswordProgressLogger> logger; |
if (logging_state_active_) { |