Index: ui/compositor/layer_unittest.cc |
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc |
index 6af9ee719b955df2474e2d0c8357d06a986fda74..1d1fc13a8809e37c3ed39efb575dfe6f1aa643c1 100644 |
--- a/ui/compositor/layer_unittest.cc |
+++ b/ui/compositor/layer_unittest.cc |
@@ -2140,10 +2140,11 @@ TEST_F(LayerWithDelegateTest, NonAnimatingAnimatorsAreRemovedFromCollection) { |
LayerRemovingLayerAnimationObserver observer(root.get(), parent.get()); |
child->GetAnimator()->AddObserver(&observer); |
- LayerAnimationElement* element = |
+ std::unique_prt<LayerAnimationElement> element = |
ui::LayerAnimationElement::CreateOpacityElement( |
0.5f, base::TimeDelta::FromSeconds(1)); |
- LayerAnimationSequence* sequence = new LayerAnimationSequence(element); |
+ LayerAnimationSequence* sequence = |
+ new LayerAnimationSequence(std::move(element)); |
child->GetAnimator()->StartAnimation(sequence); |
EXPECT_TRUE(compositor()->layer_animator_collection()->HasActiveAnimators()); |