| Index: chrome/browser/devtools/chrome_devtools_manager_delegate.cc
|
| diff --git a/chrome/browser/devtools/chrome_devtools_manager_delegate.cc b/chrome/browser/devtools/chrome_devtools_manager_delegate.cc
|
| index eb4b9fb1468d394df65f856d41ba1cd3a0707c6f..101d544a6be728d7695c7639e35c8e0173ba8192 100644
|
| --- a/chrome/browser/devtools/chrome_devtools_manager_delegate.cc
|
| +++ b/chrome/browser/devtools/chrome_devtools_manager_delegate.cc
|
| @@ -244,10 +244,9 @@ ChromeDevToolsManagerDelegate::SetRemoteLocations(
|
| content::DevToolsAgentHost* agent_host,
|
| int command_id,
|
| base::DictionaryValue* params) {
|
| - if (host_data_.find(agent_host) == host_data_.end()) {
|
| - return DevToolsProtocol::CreateInvalidParamsResponse(
|
| - command_id, "Cannot find agent host");
|
| - }
|
| + // Could have been created late.
|
| + if (host_data_.find(agent_host) == host_data_.end())
|
| + DevToolsAgentHostAttached(agent_host);
|
|
|
| std::set<net::HostPortPair> tcp_locations;
|
| base::ListValue* locations;
|
|
|