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

Unified Diff: services/ui/ws/gpu_service_proxy.cc

Issue 2365753003: mus ws: Move 'reset(new' to base::MakeUnique. (Closed)
Patch Set: Merge with tot Created 4 years, 3 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 | « services/ui/ws/frame_generator_unittest.cc ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/gpu_service_proxy.cc
diff --git a/services/ui/ws/gpu_service_proxy.cc b/services/ui/ws/gpu_service_proxy.cc
index 721c1494d21c6befef11d2a8183cb14e188e42c4..dad99c907d62b87407bc9be79eb00afa5b96c155 100644
--- a/services/ui/ws/gpu_service_proxy.cc
+++ b/services/ui/ws/gpu_service_proxy.cc
@@ -58,13 +58,13 @@ void GpuServiceProxy::OnInitialized(const gpu::GPUInfo& gpu_info) {
void GpuServiceProxy::OnInternalGpuChannelEstablished(
mojo::ScopedMessagePipeHandle channel_handle) {
- io_thread_.reset(new base::Thread("GPUIOThread"));
+ io_thread_ = base::MakeUnique<base::Thread>("GPUIOThread");
base::Thread::Options thread_options(base::MessageLoop::TYPE_IO, 0);
thread_options.priority = base::ThreadPriority::NORMAL;
CHECK(io_thread_->StartWithOptions(thread_options));
- gpu_memory_buffer_manager_.reset(new MusGpuMemoryBufferManager(
- gpu_main_.gpu_service(), kInternalGpuChannelClientId));
+ gpu_memory_buffer_manager_ = base::MakeUnique<MusGpuMemoryBufferManager>(
+ gpu_main_.gpu_service(), kInternalGpuChannelClientId);
gpu_channel_ = gpu::GpuChannelHost::Create(
this, kInternalGpuChannelClientId, gpu_info_,
IPC::ChannelHandle(channel_handle.release()), &shutdown_event_,
« no previous file with comments | « services/ui/ws/frame_generator_unittest.cc ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698