diff options
author | erikchen <erikchen@chromium.org> | 2015-10-06 18:23:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-07 01:26:16 +0000 |
commit | cdc80b06d5c210d040d7b41700a1161d310d4485 (patch) | |
tree | 4a2204377d20aeb7b4a72d340110a72fa6d0c8d7 /content/child | |
parent | c34797eef3845a14cd4b47b51aa3491f5b3ea002 (diff) | |
download | chromium_src-cdc80b06d5c210d040d7b41700a1161d310d4485.zip chromium_src-cdc80b06d5c210d040d7b41700a1161d310d4485.tar.gz chromium_src-cdc80b06d5c210d040d7b41700a1161d310d4485.tar.bz2 |
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}
Diffstat (limited to 'content/child')
-rw-r--r-- | content/child/child_thread_impl.cc | 8 |
1 files changed, 2 insertions, 6 deletions
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 |