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

Unified Diff: services/ui/gpu/display_compositor/compositor_frame_sink_factory_impl.cc

Issue 2259823003: 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
Index: services/ui/gpu/display_compositor/compositor_frame_sink_factory_impl.cc
diff --git a/services/ui/gpu/display_compositor/compositor_frame_sink_factory_impl.cc b/services/ui/gpu/display_compositor/compositor_frame_sink_factory_impl.cc
index 8ceb5a8df0936e668ce368cb90ffec8de078e946..1dea3d0811217a7c69a6e1639d847b575b0b4b21 100644
--- a/services/ui/gpu/display_compositor/compositor_frame_sink_factory_impl.cc
+++ b/services/ui/gpu/display_compositor/compositor_frame_sink_factory_impl.cc
@@ -38,8 +38,8 @@ void CompositorFrameSinkFactoryImpl::CreateCompositorFrameSink(
mojom::CompositorFrameSinkClientPtr client) {
// TODO(fsamuel): Use nonce once patch lands:
// https://codereview.chromium.org/1996783002/
- sinks_[local_id] = base::WrapUnique(new CompositorFrameSinkImpl(
- this, local_id, surfaces_state_, std::move(sink), std::move(client)));
+ sinks_[local_id] = base::MakeUnique<CompositorFrameSinkImpl>(
+ this, local_id, surfaces_state_, std::move(sink), std::move(client));
}
} // namespace gpu
« no previous file with comments | « services/shell/tests/connect/connect_unittest.cc ('k') | services/ui/public/cpp/tests/window_server_shelltest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698