From cdc80b06d5c210d040d7b41700a1161d310d4485 Mon Sep 17 00:00:00 2001 From: erikchen Date: Tue, 6 Oct 2015 18:23:56 -0700 Subject: ipc: Make factory methods for attachment brokers. This is a refactor with no intended functional effects. BUG=535711 Review URL: https://codereview.chromium.org/1382303003 Cr-Commit-Position: refs/heads/master@{#352735} --- content/child/child_thread_impl.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'content/child') diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc index 782c5d5..89231ab 100644 --- a/content/child/child_thread_impl.cc +++ b/content/child/child_thread_impl.cc @@ -72,10 +72,6 @@ #include "ui/ozone/public/client_native_pixmap_factory.h" #endif -#if defined(OS_WIN) -#include "ipc/attachment_broker_unprivileged_win.h" -#endif - using tracked_objects::ThreadData; namespace content { @@ -385,8 +381,8 @@ void ChildThreadImpl::Init(const Options& options) { // The only reason a global would already exist is if the thread is being run // in the browser process because of a command line switch. if (!IPC::AttachmentBroker::GetGlobal()) { - attachment_broker_.reset(new IPC::AttachmentBrokerUnprivilegedWin()); - IPC::AttachmentBroker::SetGlobal(attachment_broker_.get()); + attachment_broker_.reset( + IPC::AttachmentBrokerUnprivileged::CreateBroker().release()); } #endif -- cgit v1.1