Index: chrome/browser/debugger/devtools_manager.cc |
diff --git a/chrome/browser/debugger/devtools_manager.cc b/chrome/browser/debugger/devtools_manager.cc |
index f55dbba7c2f0031859a42118d9d70ecf94f8451f..fe3462e89ea4f50019fd6022dd83be00b0b1747e 100644 |
--- a/chrome/browser/debugger/devtools_manager.cc |
+++ b/chrome/browser/debugger/devtools_manager.cc |
@@ -171,6 +171,12 @@ void DevToolsManager::ClientHostClosing(DevToolsClientHost* host) { |
} |
return; |
} |
+ |
+ NotificationService::current()->Notify( |
+ NotificationType::DEVTOOLS_WINDOW_CLOSING, |
+ Source<Profile>(inspected_rvh->site_instance()->GetProcess()->profile()), |
+ Details<RenderViewHost>(inspected_rvh)); |
+ |
SendDetachToAgent(inspected_rvh); |
inspected_rvh_to_client_host_.erase(inspected_rvh); |