Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Unified Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 2400393003: [Autofill] Close mojo interface bindings of autofill/password agent in time. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 282f10a3fa0a9999750d0a3218069a250db66568..e7a3c60c8c370517123bf8dafd26dfc72ad5f01f 100644
--- a/components/autofill/content/renderer/password_autofill_agent.cc
+++ b/components/autofill/content/renderer/password_autofill_agent.cc
@@ -1153,6 +1153,7 @@ void PasswordAutofillAgent::WillSubmitForm(const blink::WebFormElement& form) {
}
void PasswordAutofillAgent::OnDestruct() {
+ binding_.Close();
base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
}

Powered by Google App Engine
This is Rietveld 408576698