Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Unified Diff: content/browser/devtools/protocol/target_handler.cc

Issue 2625223002: [DevTools] Dedicated frontend for debugging Node. (Closed)
Patch Set: test fix Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
« no previous file with comments | « content/browser/devtools/devtools_session.cc ('k') | content/browser/devtools/render_frame_devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698