| Index: ash/wm/maximize_mode/workspace_backdrop_delegate.cc
|
| diff --git a/ash/wm/maximize_mode/workspace_backdrop_delegate.cc b/ash/wm/maximize_mode/workspace_backdrop_delegate.cc
|
| index 54347a230b2799dc7f9e3d19515747c16afc0a04..455f3626eaeace8d0141fe8b4f3e61087d5431fb 100644
|
| --- a/ash/wm/maximize_mode/workspace_backdrop_delegate.cc
|
| +++ b/ash/wm/maximize_mode/workspace_backdrop_delegate.cc
|
| @@ -12,6 +12,7 @@
|
| #include "ui/compositor/scoped_layer_animation_settings.h"
|
| #include "ui/views/background.h"
|
| #include "ui/views/widget/widget.h"
|
| +#include "ui/wm/core/window_animations.h"
|
| #include "ui/wm/core/window_util.h"
|
|
|
| namespace ash {
|
| @@ -48,11 +49,9 @@ WorkspaceBackdropDelegate::WorkspaceBackdropDelegate(aura::Window* container)
|
|
|
| WorkspaceBackdropDelegate::~WorkspaceBackdropDelegate() {
|
| container_->RemoveObserver(this);
|
| - ui::ScopedLayerAnimationSettings settings(
|
| - background_->GetNativeView()->layer()->GetAnimator());
|
| + ::wm::ScopedHidingAnimationSettings hiding_settings(
|
| + background_->GetNativeView());
|
| background_->Close();
|
| - settings.AddObserver(::wm::CreateHidingWindowAnimationObserver(
|
| - background_->GetNativeView()));
|
| background_->GetNativeView()->layer()->SetOpacity(0.0f);
|
| }
|
|
|
|
|