Index: components/devtools_http_handler/devtools_http_handler.cc |
diff --git a/components/devtools_http_handler/devtools_http_handler.cc b/components/devtools_http_handler/devtools_http_handler.cc |
index a5b173afcc4f48540e7883de704010db2e0f7892..87b3d688f406658f3fad9a2aba7589e146dbbc75 100644 |
--- a/components/devtools_http_handler/devtools_http_handler.cc |
+++ b/components/devtools_http_handler/devtools_http_handler.cc |
@@ -277,7 +277,7 @@ class DevToolsAgentHostClientImpl : public DevToolsAgentHostClient { |
~DevToolsAgentHostClientImpl() override { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
if (agent_host_.get()) |
- agent_host_->DetachClient(); |
+ agent_host_->DetachClient(this); |
} |
void AgentHostClosed(DevToolsAgentHost* agent_host, |