summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/infobars
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 21:06:36 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 21:06:36 +0000
commitf4da95ff623ea7b7b4bd2c6fe2402437a712b9df (patch)
tree20b3110d52e76a1bd04eb4b2eb6a18871588656a /chrome/browser/views/infobars
parente9e079909c486a3d7561c1a0433762b395c0f48d (diff)
downloadchromium_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.cc1
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);