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

Unified Diff: remoting/client/plugin/chromoting_instance.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
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 2c2ab84493cca4345e29b47d54b10d7a46870153..db86865408d44bc7e5560fdd4a2f4df8e4f8c544 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -193,7 +193,7 @@ ChromotingInstance::ChromotingInstance(PP_Instance pp_instance)
rtc::InitRandom(random_seed, sizeof(random_seed));
// Send hello message.
- PostLegacyJsonMessage("hello", base::WrapUnique(new base::DictionaryValue()));
+ PostLegacyJsonMessage("hello", base::MakeUnique<base::DictionaryValue>());
}
ChromotingInstance::~ChromotingInstance() {
@@ -342,7 +342,7 @@ void ChromotingInstance::OnVideoDecodeError() {
void ChromotingInstance::OnVideoFirstFrameReceived() {
PostLegacyJsonMessage("onFirstFrameReceived",
- base::WrapUnique(new base::DictionaryValue()));
+ base::MakeUnique<base::DictionaryValue>());
}
void ChromotingInstance::OnVideoFrameDirtyRegion(
@@ -678,8 +678,8 @@ void ChromotingInstance::HandleConnect(const base::DictionaryValue& data) {
scoped_refptr<protocol::TransportContext> transport_context(
new protocol::TransportContext(
signal_strategy_.get(),
- base::WrapUnique(new PepperPortAllocatorFactory(this)),
- base::WrapUnique(new PepperUrlRequestFactory(this)),
+ base::MakeUnique<PepperPortAllocatorFactory>(this),
+ base::MakeUnique<PepperUrlRequestFactory>(this),
protocol::NetworkSettings(
protocol::NetworkSettings::NAT_TRAVERSAL_FULL),
protocol::TransportRole::CLIENT));
« no previous file with comments | « remoting/client/jni/jni_gl_display_handler.cc ('k') | remoting/client/plugin/pepper_port_allocator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698