| Index: content/browser/devtools/protocol/target_handler.cc
|
| diff --git a/content/browser/devtools/protocol/target_handler.cc b/content/browser/devtools/protocol/target_handler.cc
|
| index c17b128289aa5d7ed743acbfb635842b61aba894..eb6215d294e96c3bbdb69237c37e4dcc4c5d94f2 100644
|
| --- a/content/browser/devtools/protocol/target_handler.cc
|
| +++ b/content/browser/devtools/protocol/target_handler.cc
|
| @@ -412,7 +412,8 @@ bool TargetHandler::ShouldForceDevToolsAgentHostCreation() {
|
| }
|
|
|
| void TargetHandler::DevToolsAgentHostCreated(DevToolsAgentHost* agent_host) {
|
| - DCHECK(attached_hosts_.find(agent_host->GetId()) == attached_hosts_.end());
|
| + // If we start discovering late, all existing agent hosts will be reported,
|
| + // but we could have already attached to some.
|
| TargetCreatedInternal(agent_host);
|
| }
|
|
|
|
|