Index: ash/wm/window_animations.cc |
diff --git a/ash/wm/window_animations.cc b/ash/wm/window_animations.cc |
index 8b8c0b14455f616939c42535361779c739971d48..5c4c3a45dd51225ed2152c0b69c40cd0ac7a11a4 100644 |
--- a/ash/wm/window_animations.cc |
+++ b/ash/wm/window_animations.cc |
@@ -171,7 +171,8 @@ void AnimateHideWindowCommon(aura::Window* window, |
// Property sets within this scope will be implicitly animated. |
ui::ScopedLayerAnimationSettings settings(window->layer()->GetAnimator()); |
- settings.AddImplicitObserver(new HidingWindowAnimationObserver(window)); |
+ settings.AddObserver(new HidingWindowAnimationObserver(window)); |
+ |
int duration = |
window->GetIntProperty(internal::kWindowVisibilityAnimationDurationKey); |
if (duration > 0) { |