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

Unified Diff: chrome/browser/ui/cocoa/translate/translate_infobar_base.mm

Issue 6296003: Mac: Fix crash when clicking on zombie translate options menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « chrome/browser/ui/cocoa/infobar_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/translate/translate_infobar_base.mm
diff --git a/chrome/browser/ui/cocoa/translate/translate_infobar_base.mm b/chrome/browser/ui/cocoa/translate/translate_infobar_base.mm
index a91cd11d15423eb9329f6a24099744029b57426c..9408aeefe8b3581900e74e150efc76b6b0a18e4a 100644
--- a/chrome/browser/ui/cocoa/translate/translate_infobar_base.mm
+++ b/chrome/browser/ui/cocoa/translate/translate_infobar_base.mm
@@ -473,6 +473,11 @@ InfoBar* TranslateInfoBarDelegate::CreateInfoBar() {
[self updateState];
}
+- (void)infobarWillClose {
+ [[optionsPopUp_ menu] cancelTracking];
+ [super infobarWillClose];
+}
+
- (void)adjustOptionsButtonSizeAndVisibilityForView:(NSView*)lastView {
[optionsPopUp_ setHidden:NO];
[self rebuildOptionsMenu:NO];
« no previous file with comments | « chrome/browser/ui/cocoa/infobar_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698