Index: cc/trees/remote_channel_impl.cc |
diff --git a/cc/trees/remote_channel_impl.cc b/cc/trees/remote_channel_impl.cc |
index d79b743c6e41989666c96f9558eb077d05b8aaa0..3f8754c1c17c479c7fbf05691681b13f5ee742ce 100644 |
--- a/cc/trees/remote_channel_impl.cc |
+++ b/cc/trees/remote_channel_impl.cc |
@@ -470,8 +470,9 @@ void RemoteChannelImpl::InitializeImplOnImpl(CompletionEvent* completion, |
impl().proxy_impl = |
CreateProxyImpl(this, layer_tree_host, task_runner_provider_, nullptr); |
- impl().proxy_impl_weak_factory = base::WrapUnique( |
- new base::WeakPtrFactory<ProxyImpl>(impl().proxy_impl.get())); |
+ impl().proxy_impl_weak_factory = |
+ base::MakeUnique<base::WeakPtrFactory<ProxyImpl>>( |
+ impl().proxy_impl.get()); |
proxy_impl_weak_ptr_ = impl().proxy_impl_weak_factory->GetWeakPtr(); |
completion->Signal(); |
} |