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

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

Issue 2873029: Fix a crasher with the translate infobar.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
« no previous file with comments | « no previous file | chrome/browser/views/infobars/infobars.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/infobars/before_translate_infobar.cc
===================================================================
--- chrome/browser/views/infobars/before_translate_infobar.cc (revision 51005)
+++ chrome/browser/views/infobars/before_translate_infobar.cc (working copy)
@@ -96,7 +96,7 @@
if (sender == accept_button_) {
GetDelegate()->Translate();
} else if (sender == deny_button_) {
- Close();
+ RemoveInfoBar();
} else {
TranslateInfoBarBase::ButtonPressed(sender, event);
}
Property changes on: chrome\browser\views\infobars\before_translate_infobar.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | chrome/browser/views/infobars/infobars.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698