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

Unified Diff: remoting/test/fake_port_allocator.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/signaling/xmpp_signal_strategy_unittest.cc ('k') | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/fake_port_allocator.cc
diff --git a/remoting/test/fake_port_allocator.cc b/remoting/test/fake_port_allocator.cc
index b0a26de5ff184216428ac4006ee69e9e06879ad7..0904b50fac11566a0e34dbd2c2246f77cced4398 100644
--- a/remoting/test/fake_port_allocator.cc
+++ b/remoting/test/fake_port_allocator.cc
@@ -81,8 +81,8 @@ FakePortAllocatorFactory::~FakePortAllocatorFactory() {}
std::unique_ptr<cricket::PortAllocator>
FakePortAllocatorFactory::CreatePortAllocator(
scoped_refptr<protocol::TransportContext> transport_context) {
- return base::WrapUnique(new FakePortAllocator(
- network_manager_.get(), socket_factory_.get(), transport_context));
+ return base::MakeUnique<FakePortAllocator>(
+ network_manager_.get(), socket_factory_.get(), transport_context);
}
} // namespace remoting
« no previous file with comments | « remoting/signaling/xmpp_signal_strategy_unittest.cc ('k') | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698