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

Unified Diff: cc/trees/threaded_channel.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/remote_channel_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/threaded_channel.cc
diff --git a/cc/trees/threaded_channel.cc b/cc/trees/threaded_channel.cc
index 0ee9469674b6b1295b003bd065f16160769a9d72..113da6fd2cff501eb488b79915d8ffb0beeece53 100644
--- a/cc/trees/threaded_channel.cc
+++ b/cc/trees/threaded_channel.cc
@@ -287,8 +287,9 @@ void ThreadedChannel::InitializeImplOnImpl(
impl().proxy_impl =
CreateProxyImpl(this, layer_tree_host, task_runner_provider_,
std::move(external_begin_frame_source));
- 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/remote_channel_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698