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

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

Issue 7876004: [Mac] Break stale controller refs in infobar close. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also fix target on the close button. Created 9 years, 3 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
Index: chrome/browser/ui/cocoa/translate/translate_infobar_base.h
diff --git a/chrome/browser/ui/cocoa/translate/translate_infobar_base.h b/chrome/browser/ui/cocoa/translate/translate_infobar_base.h
index bd511247a94f5a2ad760edd7be5ceabe6f05ef8a..d8fad61102be41c90e300716daa40c23de86a4de 100644
--- a/chrome/browser/ui/cocoa/translate/translate_infobar_base.h
+++ b/chrome/browser/ui/cocoa/translate/translate_infobar_base.h
@@ -76,7 +76,8 @@ void AddMenuItem(NSMenu *menu, id target, SEL selector, NSString* title,
scoped_ptr<OptionsMenuModel> optionsMenuModel_;
}
-// Returns the delegate as a TranslateInfoBarDelegate.
+// Returns the delegate as a TranslateInfoBarDelegate. The return
+// value can be NULL if the infobar is closing.
- (TranslateInfoBarDelegate*)delegate;
// Called when the "Show Original" button is pressed.

Powered by Google App Engine
This is Rietveld 408576698