Index: chrome/browser/ui/views/infobars/infobar.cc |
=================================================================== |
--- chrome/browser/ui/views/infobars/infobar.cc (revision 80169) |
+++ chrome/browser/ui/views/infobars/infobar.cc (working copy) |
@@ -39,8 +39,7 @@ |
} |
void InfoBar::AnimationProgressed(const ui::Animation* animation) { |
- if (container_) |
- container_->OnInfoBarAnimated(false); |
+ RecalculateHeight(); |
} |
void InfoBar::RemoveInfoBar() { |
@@ -48,12 +47,14 @@ |
container_->RemoveDelegate(delegate_); |
} |
-void InfoBar::PlatformSpecificHide(bool animate) { |
+void InfoBar::RecalculateHeight() { |
+ PlatformSpecificRecalculateHeight(); |
+ if (container_) |
+ container_->OnInfoBarHeightChanged(animation_->is_animating()); |
} |
void InfoBar::AnimationEnded(const ui::Animation* animation) { |
- if (container_) |
- container_->OnInfoBarAnimated(true); |
+ RecalculateHeight(); |
MaybeDelete(); |
} |