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

Unified Diff: components/ui_devtools/devtools_server.cc

Issue 2470933002: Disable agents when client disconnects (Closed)
Patch Set: Created 4 years, 1 month 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: components/ui_devtools/devtools_server.cc
diff --git a/components/ui_devtools/devtools_server.cc b/components/ui_devtools/devtools_server.cc
index 6fe69843e3bebaefdf7a4926f802a159c561f71d..6d7776b68f275738a3a0af90125ab59d37cb8a11 100644
--- a/components/ui_devtools/devtools_server.cc
+++ b/components/ui_devtools/devtools_server.cc
@@ -161,6 +161,7 @@ void UiDevToolsServer::OnClose(int connection_id) {
return;
UiDevToolsClient* client = it->second;
DCHECK(client);
+ client->DisableAllAgents();
client->set_connection_id(UiDevToolsClient::kNotConnected);
sadrul 2016/11/02 01:45:39 Would it make sense to combine these two into a si
Sarmad Hashmi 2016/11/02 02:43:53 Great idea! Done.
connections_.erase(it);
}
« components/ui_devtools/devtools_client.cc ('K') | « components/ui_devtools/devtools_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698