Index: ui/gfx/animation/test_animation_delegate.h |
diff --git a/ui/gfx/animation/test_animation_delegate.h b/ui/gfx/animation/test_animation_delegate.h |
index 5bf6ea0a43b00225e0e8997199078770851b65f4..9d8b8c71fb6ca16757f155df33604725429e2f0b 100644 |
--- a/ui/gfx/animation/test_animation_delegate.h |
+++ b/ui/gfx/animation/test_animation_delegate.h |
@@ -19,13 +19,13 @@ class TestAnimationDelegate : public AnimationDelegate { |
virtual void AnimationEnded(const Animation* animation) { |
finished_ = true; |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
virtual void AnimationCanceled(const Animation* animation) { |
finished_ = true; |
canceled_ = true; |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
bool finished() const { |