Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6516)

Unified Diff: chrome/browser/views/infobars/infobars.cc

Issue 2602003: Refactored the translate infobars. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Synced Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/infobars/infobars.cc
diff --git a/chrome/browser/views/infobars/infobars.cc b/chrome/browser/views/infobars/infobars.cc
index ead3d974d598037e92551b0f8ec14cdc5db1340d..55e744259e2eaecc58a049a973c02e150149093e 100644
--- a/chrome/browser/views/infobars/infobars.cc
+++ b/chrome/browser/views/infobars/infobars.cc
@@ -147,8 +147,11 @@ void InfoBar::AnimateOpen() {
}
void InfoBar::Open() {
+ // Set the animation value to 1.0 so that GetPreferredSize() returns the right
+ // size.
animation_->Reset(1.0);
- animation_->Show();
+ if (container_)
+ container_->InfoBarAnimated(false);
}
void InfoBar::AnimateClose() {
« no previous file with comments | « chrome/browser/views/infobars/infobar_text_button.cc ('k') | chrome/browser/views/infobars/translate_infobar_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698