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

Unified Diff: gpu/ipc/service/gpu_channel.cc

Issue 2448973003: Remove use of ChannelHandle::name from gpu/ipc/service. (Closed)
Patch Set: Created 4 years, 2 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 | « gpu/ipc/service/gpu_channel.h ('k') | gpu/ipc/service/gpu_channel_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel.cc
diff --git a/gpu/ipc/service/gpu_channel.cc b/gpu/ipc/service/gpu_channel.cc
index 8926b51e47ed5b3ffca344fa88ad0fbb0729bded..2047110321728df47dd67f50bc123cfbce108f46 100644
--- a/gpu/ipc/service/gpu_channel.cc
+++ b/gpu/ipc/service/gpu_channel.cc
@@ -628,19 +628,14 @@ IPC::ChannelHandle GpuChannel::Init(base::WaitableEvent* shutdown_event) {
DCHECK(shutdown_event);
DCHECK(!channel_);
- IPC::ChannelHandle client_handle;
- IPC::ChannelHandle server_handle;
- IPC::Channel::GenerateMojoChannelHandlePair(
- "gpu", &client_handle, &server_handle);
- channel_id_ = client_handle.name;
-
- channel_ =
- IPC::SyncChannel::Create(server_handle, IPC::Channel::MODE_SERVER,
- this, io_task_runner_, false, shutdown_event);
+ mojo::MessagePipe pipe;
+ channel_ = IPC::SyncChannel::Create(pipe.handle0.release(),
+ IPC::Channel::MODE_SERVER, this,
+ io_task_runner_, false, shutdown_event);
channel_->AddFilter(filter_.get());
- return client_handle;
+ return pipe.handle1.release();
}
void GpuChannel::SetUnhandledMessageListener(IPC::Listener* listener) {
« no previous file with comments | « gpu/ipc/service/gpu_channel.h ('k') | gpu/ipc/service/gpu_channel_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698