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

Unified Diff: chrome/renderer/render_thread.cc

Issue 5598010: Convert over to channel handles (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed up bad whitespace Created 10 years 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
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;

Powered by Google App Engine
This is Rietveld 408576698