summaryrefslogtreecommitdiffstats
path: root/chrome/browser/translate/translate_infobars_delegates.cc
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 18:53:38 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 18:53:38 +0000
commitbd6dec7407bcacd66a3cb4adbc33fab42214a36d (patch)
tree30c62fdee0606ef3d3c3f9370f0a936650a92a0a /chrome/browser/translate/translate_infobars_delegates.cc
parentb05ce36f883bb46bf7bd78a235b1e979ed1add86 (diff)
downloadchromium_src-bd6dec7407bcacd66a3cb4adbc33fab42214a36d.zip
chromium_src-bd6dec7407bcacd66a3cb4adbc33fab42214a36d.tar.gz
chromium_src-bd6dec7407bcacd66a3cb4adbc33fab42214a36d.tar.bz2
Translate Infobars for OS X.
Infobars.xib changes - Connect and fix class for close button since the translate infobar needs to know where it is to position the "Options" menu to it's left. BUG=34466 TEST=Translate infobars should continue to workon Windows. Review URL: http://codereview.chromium.org/594056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40034 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/translate/translate_infobars_delegates.cc')
-rw-r--r--chrome/browser/translate/translate_infobars_delegates.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/translate/translate_infobars_delegates.cc b/chrome/browser/translate/translate_infobars_delegates.cc
index ad0b8d5..2aad0b4 100644
--- a/chrome/browser/translate/translate_infobars_delegates.cc
+++ b/chrome/browser/translate/translate_infobars_delegates.cc
@@ -146,7 +146,7 @@ void TranslateInfoBarDelegate::ToggleLanguageBlacklist() {
else
prefs_.RemoveLanguageFromBlacklist(original_lang_code());
} else {
- NOTREACHED() << "Invalid mehod called for translate state";
+ NOTREACHED() << "Invalid method called for translate state";
}
}
@@ -211,7 +211,7 @@ string16 TranslateInfoBarDelegate::GetDisplayNameForLocale(
language_code, g_browser_process->GetApplicationLocale(), true);
}
-#if !defined(TOOLKIT_VIEWS)
+#if !defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)
// TranslateInfoBarDelegate: InfoBarDelegate overrides: ------------------------
InfoBar* TranslateInfoBarDelegate::CreateInfoBar() {