| Index: ash/rotator/screen_rotation_animation.cc
|
| diff --git a/ash/rotator/screen_rotation_animation.cc b/ash/rotator/screen_rotation_animation.cc
|
| index 4e65e543181a9f6dd790be6da5ef46a933d9c11c..c0ac700237e75ca006ee17855ddce24d8ca127ea 100644
|
| --- a/ash/rotator/screen_rotation_animation.cc
|
| +++ b/ash/rotator/screen_rotation_animation.cc
|
| @@ -28,15 +28,16 @@ ScreenRotationAnimation::ScreenRotationAnimation(ui::Layer* layer,
|
| tween_type_(tween_type),
|
| initial_opacity_(initial_opacity),
|
| target_opacity_(target_opacity) {
|
| - std::unique_ptr<ui::InterpolatedTransform> rotation(
|
| - new ui::InterpolatedTransformAboutPivot(
|
| - pivot, new ui::InterpolatedRotation(start_degrees, end_degrees)));
|
| + std::unique_ptr<ui::InterpolatedTransform> rotation =
|
| + base::MakeUnique<ui::InterpolatedTransformAboutPivot>(
|
| + pivot, base::MakeUnique<ui::InterpolatedRotation>(start_degrees,
|
| + end_degrees));
|
|
|
| // Use the target transform/bounds in case the layer is already animating.
|
| gfx::Transform current_transform = layer->GetTargetTransform();
|
| interpolated_transform_.reset(
|
| new ui::InterpolatedConstantTransform(current_transform));
|
| - interpolated_transform_->SetChild(rotation.release());
|
| + interpolated_transform_->SetChild(std::move(rotation));
|
| }
|
|
|
| ScreenRotationAnimation::~ScreenRotationAnimation() {}
|
|
|