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

Unified Diff: cc/trees/remote_channel_impl.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/trees/layer_tree_host_unittest.cc ('k') | cc/trees/threaded_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/threaded_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698