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

Unified Diff: chrome/gpu/gpu_channel.cc

Issue 4979005: Gpu: Unregister channel name in the gpu process when a channel closes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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
« 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/gpu/gpu_channel.cc
diff --git a/chrome/gpu/gpu_channel.cc b/chrome/gpu/gpu_channel.cc
index d5525ed0d3230f920979a07ed1a991e1c6c8cefa..8d0387433930e0e672118bd935a48e248e049315 100644
--- a/chrome/gpu/gpu_channel.cc
+++ b/chrome/gpu/gpu_channel.cc
@@ -65,6 +65,9 @@ void GpuChannel::OnMessageReceived(const IPC::Message& message) {
void GpuChannel::OnChannelError() {
static_cast<GpuThread*>(ChildThread::current())->RemoveChannel(renderer_id_);
+#if defined(OS_POSIX)
+ IPC::RemoveAndCloseChannelSocket(GetChannelName());
apatrick 2010/11/16 17:48:55 I think this is the right thing to do but I wonder
+#endif
}
bool GpuChannel::Send(IPC::Message* message) {
« 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