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

Unified Diff: content/browser/webrtc/webrtc_internals.cc

Issue 2693263003: Release RTCPeerConnection PowerSaveBlock on process exit. (Closed)
Patch Set: Created 3 years, 10 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 | « content/browser/webrtc/webrtc_internals.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webrtc/webrtc_internals.cc
diff --git a/content/browser/webrtc/webrtc_internals.cc b/content/browser/webrtc/webrtc_internals.cc
index 51163e96e3439eaee4b11387502201b880dde4a6..677e7e26c6ea037c1bc73374c7128bd51e126e84 100644
--- a/content/browser/webrtc/webrtc_internals.cc
+++ b/content/browser/webrtc/webrtc_internals.cc
@@ -400,10 +400,11 @@ void WebRTCInternals::SendUpdate(const char* command,
}
}
-void WebRTCInternals::RenderProcessHostDestroyed(RenderProcessHost* host) {
+void WebRTCInternals::RenderProcessExited(RenderProcessHost* host,
+ base::TerminationStatus status,
+ int exit_code) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
OnRendererExit(host->GetID());
-
render_process_id_set_.erase(host->GetID());
host->RemoveObserver(this);
}
@@ -458,6 +459,7 @@ void WebRTCInternals::OnRendererExit(int render_process_id) {
update->SetInteger("pid", pid);
SendUpdate("removePeerConnection", std::move(update));
}
+ MaybeClosePeerConnection(record);
peer_connection_data_.Remove(i, NULL);
}
}
« no previous file with comments | « content/browser/webrtc/webrtc_internals.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698