diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-17 21:06:36 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-17 21:06:36 +0000 |
commit | f4da95ff623ea7b7b4bd2c6fe2402437a712b9df (patch) | |
tree | 20b3110d52e76a1bd04eb4b2eb6a18871588656a /chrome/browser/views/infobars | |
parent | e9e079909c486a3d7561c1a0433762b395c0f48d (diff) | |
download | chromium_src-f4da95ff623ea7b7b4bd2c6fe2402437a712b9df.zip chromium_src-f4da95ff623ea7b7b4bd2c6fe2402437a712b9df.tar.gz chromium_src-f4da95ff623ea7b7b4bd2c6fe2402437a712b9df.tar.bz2 |
Makes sure we don't display several times the translate infobar for a page.
We can get several PAGE_DETERMINED notifications for one page.
The user might have closed the translate infobar between these multiple
notifications. This CL ensures we don't show the infobar again in such
cases.
BUG=35919
TEST=See bug.
Review URL: http://codereview.chromium.org/613002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/infobars')
-rw-r--r-- | chrome/browser/views/infobars/translate_infobars.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/views/infobars/translate_infobars.cc b/chrome/browser/views/infobars/translate_infobars.cc index d9660d2..3d5bb78 100644 --- a/chrome/browser/views/infobars/translate_infobars.cc +++ b/chrome/browser/views/infobars/translate_infobars.cc @@ -600,6 +600,7 @@ void TranslateInfoBar::ButtonPressed( UpdateState(TranslateInfoBarDelegate::kTranslating); GetDelegate()->Translate(); } else if (sender == deny_button_) { + GetDelegate()->TranslationDeclined(); RemoveInfoBar(); } else { // Let base InfoBar handle close button. InfoBar::ButtonPressed(sender, event); |