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

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

Issue 7006010: Change InfoBar-related notifications to be sourced from a TabContentsWrapper, not a TabContents. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/views/infobars/before_translate_infobar.cc ('k') | content/common/notification_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/infobars/translate_infobar_base.cc
===================================================================
--- chrome/browser/ui/views/infobars/translate_infobar_base.cc (revision 87541)
+++ chrome/browser/ui/views/infobars/translate_infobar_base.cc (working copy)
@@ -79,6 +79,7 @@
void TranslateInfoBarBase::UpdateLanguageButtonText(
views::MenuButton* button,
LanguagesMenuModel::LanguageType language_type) {
+ DCHECK(button);
TranslateInfoBarDelegate* delegate = GetDelegate();
button->SetText(UTF16ToWideHack(delegate->GetLanguageDisplayableNameAt(
(language_type == LanguagesMenuModel::ORIGINAL) ?
« no previous file with comments | « chrome/browser/ui/views/infobars/before_translate_infobar.cc ('k') | content/common/notification_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698