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

Unified Diff: content/browser/renderer_host/p2p_sockets_host.cc

Issue 6627052: Fix crash in P2P IPC host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 9 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/renderer_host/p2p_sockets_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/p2p_sockets_host.cc
diff --git a/content/browser/renderer_host/p2p_sockets_host.cc b/content/browser/renderer_host/p2p_sockets_host.cc
index 310bd1dcfa9b19c39ea5722f8469f4ef67f5368e..aa2ef0af4865deac86ba3a1da1c13922ad657e06 100644
--- a/content/browser/renderer_host/p2p_sockets_host.cc
+++ b/content/browser/renderer_host/p2p_sockets_host.cc
@@ -17,7 +17,8 @@ void P2PSocketsHost::OnChannelClosing() {
BrowserMessageFilter::OnChannelClosing();
// Since the IPC channel is gone, close pending connections.
- for (IDMap<P2PSocketHost>::iterator i(&sockets_); !i.IsAtEnd(); i.Advance()) {
+ for (IDMap<P2PSocketHost, IDMapOwnPointer>::iterator i(&sockets_);
+ !i.IsAtEnd(); i.Advance()) {
sockets_.Remove(i.GetCurrentKey());
}
}
« no previous file with comments | « content/browser/renderer_host/p2p_sockets_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698