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

Unified Diff: cc/layers/texture_layer.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/layers/layer_impl.cc ('k') | cc/output/bsp_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer.cc
diff --git a/cc/layers/texture_layer.cc b/cc/layers/texture_layer.cc
index 7d1e14229eb40d34b8d58f648181491170d81cd9..b533db16ee9b424fce21c1a4a2abbcb3e1dd372b 100644
--- a/cc/layers/texture_layer.cc
+++ b/cc/layers/texture_layer.cc
@@ -258,8 +258,8 @@ std::unique_ptr<TextureLayer::TextureMailboxHolder::MainThreadReference>
TextureLayer::TextureMailboxHolder::Create(
const TextureMailbox& mailbox,
std::unique_ptr<SingleReleaseCallback> release_callback) {
- return base::WrapUnique(new MainThreadReference(
- new TextureMailboxHolder(mailbox, std::move(release_callback))));
+ return base::MakeUnique<MainThreadReference>(
+ new TextureMailboxHolder(mailbox, std::move(release_callback)));
}
void TextureLayer::TextureMailboxHolder::Return(
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/output/bsp_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698