| Index: ui/compositor/layer_animator.cc
|
| diff --git a/ui/compositor/layer_animator.cc b/ui/compositor/layer_animator.cc
|
| index 72ca40d0424c3994295773506ccc828c22867c6a..141e7dd18bad6b16bfc4f7ad73f66fa8c27c6fa5 100644
|
| --- a/ui/compositor/layer_animator.cc
|
| +++ b/ui/compositor/layer_animator.cc
|
| @@ -94,10 +94,10 @@ LayerAnimator* LayerAnimator::CreateImplicitAnimator() {
|
| delegate()->Set##name##FromAnimation(value); \
|
| return; \
|
| } \
|
| - std::unique_ptr<LayerAnimationElement> element( \
|
| - LayerAnimationElement::Create##name##Element(value, duration)); \
|
| + std::unique_ptr<LayerAnimationElement> element = \
|
| + LayerAnimationElement::Create##name##Element(value, duration); \
|
| element->set_tween_type(tween_type_); \
|
| - StartAnimation(new LayerAnimationSequence(element.release())); \
|
| + StartAnimation(new LayerAnimationSequence(std::move(element))); \
|
| } \
|
| \
|
| member_type LayerAnimator::GetTarget##name() const { \
|
|
|