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

Side by Side Diff: ipc/ipc_channel_factory.cc

Issue 2255143002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « ipc/attachment_broker_privileged.cc ('k') | ipc/ipc_channel_mojo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/macros.h" 5 #include "base/macros.h"
6 #include "base/memory/ptr_util.h" 6 #include "base/memory/ptr_util.h"
7 #include "ipc/ipc_channel_factory.h" 7 #include "ipc/ipc_channel_factory.h"
8 #include "ipc/ipc_channel_mojo.h" 8 #include "ipc/ipc_channel_mojo.h"
9 9
10 namespace IPC { 10 namespace IPC {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 DISALLOW_COPY_AND_ASSIGN(PlatformChannelFactory); 44 DISALLOW_COPY_AND_ASSIGN(PlatformChannelFactory);
45 }; 45 };
46 46
47 } // namespace 47 } // namespace
48 48
49 // static 49 // static
50 std::unique_ptr<ChannelFactory> ChannelFactory::Create( 50 std::unique_ptr<ChannelFactory> ChannelFactory::Create(
51 const ChannelHandle& handle, 51 const ChannelHandle& handle,
52 Channel::Mode mode, 52 Channel::Mode mode,
53 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) { 53 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) {
54 return base::WrapUnique( 54 return base::MakeUnique<PlatformChannelFactory>(handle, mode,
55 new PlatformChannelFactory(handle, mode, ipc_task_runner)); 55 ipc_task_runner);
56 } 56 }
57 57
58 } // namespace IPC 58 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/attachment_broker_privileged.cc ('k') | ipc/ipc_channel_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698