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

Unified Diff: chrome/browser/devtools/devtools_ui_bindings.cc

Issue 1337523002: DevTools: issue detach notification when frontend api connection is kicked out. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_ui_bindings.cc
diff --git a/chrome/browser/devtools/devtools_ui_bindings.cc b/chrome/browser/devtools/devtools_ui_bindings.cc
index 1620d733b218d1cd68b0092bba0485b9ddb09cae..664627cda0ad1de2c52a65d750db6dccfc1c2bb9 100644
--- a/chrome/browser/devtools/devtools_ui_bindings.cc
+++ b/chrome/browser/devtools/devtools_ui_bindings.cc
@@ -401,6 +401,10 @@ void DevToolsUIBindings::WebSocketAPIChannel::DispatchOnClientHost(
}
void DevToolsUIBindings::WebSocketAPIChannel::ConnectionClosed() {
+ if (bindings_) {
+ bindings_->CallClientFunction("DevToolsAPI.frontendAPIDetached",
+ nullptr, nullptr, nullptr);
+ }
if (attached_proxy_)
attached_proxy_->ConnectionClosed();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698