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

Unified Diff: chrome/browser/ui/views/infobars/translate_message_infobar.cc

Issue 4767001: Make TabContents own its infobar delegates.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/views/infobars/translate_message_infobar.cc
===================================================================
--- chrome/browser/ui/views/infobars/translate_message_infobar.cc (revision 65711)
+++ chrome/browser/ui/views/infobars/translate_message_infobar.cc (working copy)
@@ -49,7 +49,7 @@
void TranslateMessageInfoBar::ButtonPressed(views::Button* sender,
const views::Event& event) {
- if (sender == button_) {
+ if (delegate() && (sender == button_)) {
GetDelegate()->MessageInfoBarButtonPressed();
return;
}
Property changes on: chrome/browser/ui/views/infobars/translate_message_infobar.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698