[Autofill Assistant] Detach DevtoolsClient in destructor.
Before this patch the DevToolsAgentHost was left with a pointer to deleted client when Autofill Assistant finished, causing a crash when the tab was destroyed. This patch fixes that issue by having the client detach itself when it is deleted. Bug: 806868 Change-Id: Id10f0ba7fdaa0216d7b3053c25d965c7ce02bcc7 Reviewed-on: https://chromium-review.googlesource.com/1253106 Commit-Queue: Stephane Zermatten <szermatt@chromium.org> Reviewed-by:Ganggui Tang <gogerald@chromium.org> Cr-Commit-Position: refs/heads/master@{#595728}
Showing
Please register or sign in to comment