Index: components/devtools_service/devtools_agent_host.cc |
diff --git a/components/devtools_service/devtools_agent_host.cc b/components/devtools_service/devtools_agent_host.cc |
index 3f0cae25a7bb82af268fa20766695686dce78056..1f68e9391910f47e832bfceba6468c47372ac77d 100644 |
--- a/components/devtools_service/devtools_agent_host.cc |
+++ b/components/devtools_service/devtools_agent_host.cc |
@@ -23,9 +23,7 @@ void DevToolsAgentHost::SetDelegate(Delegate* delegate) { |
if (binding_.is_bound()) |
return; |
- DevToolsAgentClientPtr client; |
- binding_.Bind(&client); |
- agent_->SetClient(std::move(client)); |
+ agent_->SetClient(binding_.CreateInterfacePtrAndBind()); |
} else { |
if (!binding_.is_bound()) |
return; |