Index: win8/viewer/metro_viewer_process_host.cc |
diff --git a/win8/viewer/metro_viewer_process_host.cc b/win8/viewer/metro_viewer_process_host.cc |
index 70b6b35a70015c2bb74cf6ad93565f2c3957580c..eaeaedfc8cca5372ff7d056e91fa500e1c342f55 100644 |
--- a/win8/viewer/metro_viewer_process_host.cc |
+++ b/win8/viewer/metro_viewer_process_host.cc |
@@ -51,11 +51,10 @@ MetroViewerProcessHost::MetroViewerProcessHost( |
DCHECK(!instance_); |
instance_ = this; |
- channel_.reset(new IPC::ChannelProxy( |
+ channel_ = IPC::ChannelProxy::CreateNamedServer( |
kMetroViewerIPCChannelName, |
- IPC::Channel::MODE_NAMED_SERVER, |
this, |
- ipc_task_runner)); |
+ ipc_task_runner); |
} |
MetroViewerProcessHost::~MetroViewerProcessHost() { |