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

Unified Diff: remoting/client/jni/jni_gl_display_handler.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
« no previous file with comments | « remoting/client/jni/chromoting_jni_runtime.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/jni/jni_gl_display_handler.cc
diff --git a/remoting/client/jni/jni_gl_display_handler.cc b/remoting/client/jni/jni_gl_display_handler.cc
index 4b6d23084551fb1b0170697deb9e7a9244131648..7ab77ebcbd9db5cec9501431e831bc6536991461 100644
--- a/remoting/client/jni/jni_gl_display_handler.cc
+++ b/remoting/client/jni/jni_gl_display_handler.cc
@@ -46,8 +46,8 @@ void JniGlDisplayHandler::InitializeClient(
std::unique_ptr<protocol::CursorShapeStub>
JniGlDisplayHandler::CreateCursorShapeStub() {
- return base::WrapUnique(
- new CursorShapeStubProxy(weak_ptr_, runtime_->display_task_runner()));
+ return base::MakeUnique<CursorShapeStubProxy>(
+ weak_ptr_, runtime_->display_task_runner());
}
std::unique_ptr<protocol::VideoRenderer>
@@ -55,12 +55,12 @@ JniGlDisplayHandler::CreateVideoRenderer() {
DCHECK(runtime_->ui_task_runner()->BelongsToCurrentThread());
DCHECK(!frame_consumer_);
std::unique_ptr<DualBufferFrameConsumer> consumer =
- base::WrapUnique(new DualBufferFrameConsumer(
+ base::MakeUnique<DualBufferFrameConsumer>(
base::Bind(&GlRenderer::OnFrameReceived, renderer_.GetWeakPtr()),
runtime_->display_task_runner(),
- protocol::FrameConsumer::PixelFormat::FORMAT_RGBA));
+ protocol::FrameConsumer::PixelFormat::FORMAT_RGBA);
frame_consumer_ = consumer->GetWeakPtr();
- return base::WrapUnique(new SoftwareVideoRenderer(std::move(consumer)));
+ return base::MakeUnique<SoftwareVideoRenderer>(std::move(consumer));
}
// static
« no previous file with comments | « remoting/client/jni/chromoting_jni_runtime.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698