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

Unified Diff: ppapi/proxy/vpn_provider_resource.cc

Issue 2254973004: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/video_encoder_resource.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/vpn_provider_resource.cc
diff --git a/ppapi/proxy/vpn_provider_resource.cc b/ppapi/proxy/vpn_provider_resource.cc
index 506496143577c90142d1ee0bdd2dbcb3e54fbb5d..95536393dccec8971b756b65731be86b5ff29a34 100644
--- a/ppapi/proxy/vpn_provider_resource.cc
+++ b/ppapi/proxy/vpn_provider_resource.cc
@@ -207,10 +207,10 @@ void VpnProviderResource::OnPluginMsgBindReply(
NOTREACHED();
return;
}
- send_packet_buffer_ = base::WrapUnique(new ppapi::VpnProviderSharedBuffer(
- queue_size, max_packet_size, std::move(send_shm)));
- recv_packet_buffer_ = base::WrapUnique(new ppapi::VpnProviderSharedBuffer(
- queue_size, max_packet_size, std::move(receive_shm)));
+ send_packet_buffer_ = base::MakeUnique<ppapi::VpnProviderSharedBuffer>(
+ queue_size, max_packet_size, std::move(send_shm));
+ recv_packet_buffer_ = base::MakeUnique<ppapi::VpnProviderSharedBuffer>(
+ queue_size, max_packet_size, std::move(receive_shm));
bound_ = (result == PP_OK);
}
« no previous file with comments | « ppapi/proxy/video_encoder_resource.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698