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

Unified Diff: remoting/client/plugin/pepper_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/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/pepper_url_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_port_allocator_factory.cc
diff --git a/remoting/client/plugin/pepper_port_allocator_factory.cc b/remoting/client/plugin/pepper_port_allocator_factory.cc
index 062fc599dfd1f91d7bd0031f5ea4d5d6a525139b..c3255f4a98bb09e453498c7c4bcb11d060ea0a6f 100644
--- a/remoting/client/plugin/pepper_port_allocator_factory.cc
+++ b/remoting/client/plugin/pepper_port_allocator_factory.cc
@@ -21,10 +21,10 @@ PepperPortAllocatorFactory::~PepperPortAllocatorFactory() {}
std::unique_ptr<cricket::PortAllocator>
PepperPortAllocatorFactory::CreatePortAllocator(
scoped_refptr<protocol::TransportContext> transport_context) {
- return base::WrapUnique(new protocol::PortAllocator(
+ return base::MakeUnique<protocol::PortAllocator>(
base::WrapUnique(new PepperNetworkManager(pp_instance_)),
base::WrapUnique(new PepperPacketSocketFactory(pp_instance_)),
- transport_context));
+ transport_context);
}
} // namespace remoting
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/pepper_url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698