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

Unified Diff: cc/test/remote_proto_channel_bridge.cc

Issue 2258833002: 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 | « cc/test/pixel_test.cc ('k') | cc/test/test_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/remote_proto_channel_bridge.cc
diff --git a/cc/test/remote_proto_channel_bridge.cc b/cc/test/remote_proto_channel_bridge.cc
index 3a93c223b77c6ba0b65c89006c3429e41195516a..6d9002c9a91c38dc046a51e07d8d53f1a9d62f0c 100644
--- a/cc/test/remote_proto_channel_bridge.cc
+++ b/cc/test/remote_proto_channel_bridge.cc
@@ -57,7 +57,7 @@ void FakeRemoteProtoChannelMain::SendCompositorProto(
return;
default:
bridge_->channel_impl.OnProtoReceived(
- base::WrapUnique(new proto::CompositorMessage(proto)));
+ base::MakeUnique<proto::CompositorMessage>(proto));
}
}
@@ -68,7 +68,7 @@ FakeRemoteProtoChannelImpl::FakeRemoteProtoChannelImpl(
void FakeRemoteProtoChannelImpl::SendCompositorProto(
const proto::CompositorMessage& proto) {
bridge_->channel_main.OnProtoReceived(
- base::WrapUnique(new proto::CompositorMessage(proto)));
+ base::MakeUnique<proto::CompositorMessage>(proto));
}
RemoteProtoChannelBridge::RemoteProtoChannelBridge(TestHooks* test_hooks)
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/test/test_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698