Index: chrome/renderer/render_thread.cc |
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc |
index 3fe1ff2814061ac5a2a0e9bb312fe76de8ab4b96..9fb0d6aba2e158d6801d6d89af62a618eb1678d5 100644 |
--- a/chrome/renderer/render_thread.cc |
+++ b/chrome/renderer/render_thread.cc |
@@ -1080,17 +1080,11 @@ void RenderThread::OnSetIsIncognitoProcess(bool is_incognito_process) { |
void RenderThread::OnGpuChannelEstablished( |
const IPC::ChannelHandle& channel_handle, const GPUInfo& gpu_info) { |
-#if defined(OS_POSIX) |
- // If we received a ChannelHandle, register it now. |
- if (channel_handle.socket.fd >= 0) |
- IPC::AddChannelSocket(channel_handle.name, channel_handle.socket.fd); |
-#endif |
- |
gpu_channel_->set_gpu_info(gpu_info); |
if (channel_handle.name.size() != 0) { |
// Connect to the GPU process if a channel name was received. |
- gpu_channel_->Connect(channel_handle.name); |
+ gpu_channel_->Connect(channel_handle); |
} else { |
// Otherwise cancel the connection. |
gpu_channel_ = NULL; |