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

Unified Diff: chrome/browser/devtools/chrome_devtools_manager_delegate.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
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_embedder_message_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_embedder_message_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698