Index: ash/shelf/shelf_view.cc |
diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc |
index 9f3fe0a05165812de2521df3fe5ff67c16a4a677..95c7e0831447c0e8ea166949d6e288b110ee7e20 100644 |
--- a/ash/shelf/shelf_view.cc |
+++ b/ash/shelf/shelf_view.cc |
@@ -1900,7 +1900,7 @@ void ShelfView::OnBoundsAnimatorProgressed(views::BoundsAnimator* animator) { |
} |
void ShelfView::OnBoundsAnimatorDone(views::BoundsAnimator* animator) { |
- if (snap_back_from_rip_off_view_ && animator == bounds_animator_) { |
+ if (snap_back_from_rip_off_view_ && animator == bounds_animator_.get()) { |
if (!animator->IsAnimating(snap_back_from_rip_off_view_)) { |
// Coming here the animation of the ShelfButton is finished and the |
// previously hidden status can be shown again. Since the button itself |