summaryrefslogtreecommitdiffstats
path: root/chrome/utility
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-18 06:51:15 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-18 06:51:15 +0000
commitc7e136fc8a564f1a30ef6214e4f2b5d598cfbe94 (patch)
tree147504d5e33aabc8c91d3be94ddec28f13eaead5 /chrome/utility
parentbd209fefecce23870a49ad6e848625f6eee7e66c (diff)
downloadchromium_src-c7e136fc8a564f1a30ef6214e4f2b5d598cfbe94.zip
chromium_src-c7e136fc8a564f1a30ef6214e4f2b5d598cfbe94.tar.gz
chromium_src-c7e136fc8a564f1a30ef6214e4f2b5d598cfbe94.tar.bz2
Hide translate infobar on programmatic navigation.
In Google news, you can change the UI language through a popup menu [which does so by submitting a form programmatically]. The translation infobar wasn't being refreshed in this situation because the page navigation being performed is programmatic. Infobar hiding on navigation, goes through TabContents::ExpireInfoBars() which has an early return if the navigation just performed wasn't initiated by the user. After this, the code loops through the list of infobars and calls ShouldExpire() on each one to determine if it can be closed. This CL removes the early return and moves the code to determine dismissal to the ShouldExpire() method of the infobar delegates, thus allowing the translate infobar to indicate that it can be dismissed on page navigation. BUG=70261 TEST=See bug. Review URL: http://codereview.chromium.org/6883299 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85731 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/utility')
0 files changed, 0 insertions, 0 deletions