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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/authenticator.cc ('k') | remoting/protocol/connection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/chromium_port_allocator_factory.cc
diff --git a/remoting/protocol/chromium_port_allocator_factory.cc b/remoting/protocol/chromium_port_allocator_factory.cc
index 77361fb4e2dbbfb157c5e5e4d1cba0979e1f7974..37792d8a1528248c6ab1cccb1efd7f5203301e27 100644
--- a/remoting/protocol/chromium_port_allocator_factory.cc
+++ b/remoting/protocol/chromium_port_allocator_factory.cc
@@ -18,9 +18,9 @@ ChromiumPortAllocatorFactory::~ChromiumPortAllocatorFactory() {}
std::unique_ptr<cricket::PortAllocator>
ChromiumPortAllocatorFactory::CreatePortAllocator(
scoped_refptr<TransportContext> transport_context) {
- return base::WrapUnique(new PortAllocator(
+ return base::MakeUnique<PortAllocator>(
base::WrapUnique(new rtc::BasicNetworkManager()),
- base::WrapUnique(new ChromiumPacketSocketFactory()), transport_context));
+ base::WrapUnique(new ChromiumPacketSocketFactory()), transport_context);
}
} // namespace protocol
« 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