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

Side by Side Diff: remoting/protocol/chromium_port_allocator_factory.cc

Issue 2253233004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « remoting/protocol/authenticator.cc ('k') | remoting/protocol/connection_unittest.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "remoting/protocol/chromium_port_allocator_factory.h" 5 #include "remoting/protocol/chromium_port_allocator_factory.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "remoting/protocol/chromium_socket_factory.h" 8 #include "remoting/protocol/chromium_socket_factory.h"
9 #include "remoting/protocol/port_allocator.h" 9 #include "remoting/protocol/port_allocator.h"
10 #include "remoting/protocol/transport_context.h" 10 #include "remoting/protocol/transport_context.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 namespace protocol { 13 namespace protocol {
14 14
15 ChromiumPortAllocatorFactory::ChromiumPortAllocatorFactory() {} 15 ChromiumPortAllocatorFactory::ChromiumPortAllocatorFactory() {}
16 ChromiumPortAllocatorFactory::~ChromiumPortAllocatorFactory() {} 16 ChromiumPortAllocatorFactory::~ChromiumPortAllocatorFactory() {}
17 17
18 std::unique_ptr<cricket::PortAllocator> 18 std::unique_ptr<cricket::PortAllocator>
19 ChromiumPortAllocatorFactory::CreatePortAllocator( 19 ChromiumPortAllocatorFactory::CreatePortAllocator(
20 scoped_refptr<TransportContext> transport_context) { 20 scoped_refptr<TransportContext> transport_context) {
21 return base::WrapUnique(new PortAllocator( 21 return base::MakeUnique<PortAllocator>(
22 base::WrapUnique(new rtc::BasicNetworkManager()), 22 base::WrapUnique(new rtc::BasicNetworkManager()),
23 base::WrapUnique(new ChromiumPacketSocketFactory()), transport_context)); 23 base::WrapUnique(new ChromiumPacketSocketFactory()), transport_context);
24 } 24 }
25 25
26 } // namespace protocol 26 } // namespace protocol
27 } // namespace remoting 27 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/authenticator.cc ('k') | remoting/protocol/connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698