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

Unified Diff: ui/compositor/layer_owner.cc

Issue 2259753003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « ui/base/nine_image_painter_factory.cc ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_owner.cc
diff --git a/ui/compositor/layer_owner.cc b/ui/compositor/layer_owner.cc
index 9fe0b96b6c33a3a093fc669ebcd2623b26a93ab9..d94ff2cc8239813e500d1296b780ae5cd16cff9d 100644
--- a/ui/compositor/layer_owner.cc
+++ b/ui/compositor/layer_owner.cc
@@ -55,7 +55,7 @@ std::unique_ptr<Layer> LayerOwner::RecreateLayer() {
new_layer->SetColor(old_layer->GetTargetColor());
SkRegion* alpha_shape = old_layer->alpha_shape();
if (alpha_shape)
- new_layer->SetAlphaShape(base::WrapUnique(new SkRegion(*alpha_shape)));
+ new_layer->SetAlphaShape(base::MakeUnique<SkRegion>(*alpha_shape));
if (old_layer->parent()) {
// Install new layer as a sibling of the old layer, stacked below it.
« no previous file with comments | « ui/base/nine_image_painter_factory.cc ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698