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

Unified Diff: ipc/ipc_channel_mojo.cc

Issue 2255143002: 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 | « ipc/ipc_channel_factory.cc ('k') | ipc/ipc_perftest_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_mojo.cc
diff --git a/ipc/ipc_channel_mojo.cc b/ipc/ipc_channel_mojo.cc
index 9ce2e661bd145a204ca7f62dfa7e68b494c029ed..2c74a9830f3c00a573f8d4b9ade200cbe2c35c1b 100644
--- a/ipc/ipc_channel_mojo.cc
+++ b/ipc/ipc_channel_mojo.cc
@@ -253,16 +253,16 @@ std::unique_ptr<ChannelMojo> ChannelMojo::Create(
std::unique_ptr<ChannelFactory> ChannelMojo::CreateServerFactory(
mojo::ScopedMessagePipeHandle handle,
const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) {
- return base::WrapUnique(new MojoChannelFactory(
- std::move(handle), Channel::MODE_SERVER, ipc_task_runner));
+ return base::MakeUnique<MojoChannelFactory>(
+ std::move(handle), Channel::MODE_SERVER, ipc_task_runner);
}
// static
std::unique_ptr<ChannelFactory> ChannelMojo::CreateClientFactory(
mojo::ScopedMessagePipeHandle handle,
const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) {
- return base::WrapUnique(new MojoChannelFactory(
- std::move(handle), Channel::MODE_CLIENT, ipc_task_runner));
+ return base::MakeUnique<MojoChannelFactory>(
+ std::move(handle), Channel::MODE_CLIENT, ipc_task_runner);
}
ChannelMojo::ChannelMojo(
« no previous file with comments | « ipc/ipc_channel_factory.cc ('k') | ipc/ipc_perftest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698