Index: chrome/browser/translate/chrome_translate_client.cc |
diff --git a/chrome/browser/translate/chrome_translate_client.cc b/chrome/browser/translate/chrome_translate_client.cc |
index 7d3459c02fe388db68202f138fa8176ad123d0e5..56bdbf4034ce062bb387a602f13d3abb3aaac157 100644 |
--- a/chrome/browser/translate/chrome_translate_client.cc |
+++ b/chrome/browser/translate/chrome_translate_client.cc |
@@ -242,8 +242,9 @@ int ChromeTranslateClient::GetInfobarIconID() const { |
} |
// ChromeTranslateClient::CreateInfoBar() is implemented in platform-specific |
-// files, except the TOOLKIT_VIEWS implementation, which has been removed. |
-#if defined(TOOLKIT_VIEWS) |
+// files, except the TOOLKIT_VIEWS implementation, which has been removed. Note |
+// for Mac, Cocoa is still providing the infobar in a toolkit-views build. |
+#if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) |
scoped_ptr<infobars::InfoBar> ChromeTranslateClient::CreateInfoBar( |
scoped_ptr<TranslateInfoBarDelegate> delegate) const { |
return scoped_ptr<infobars::InfoBar>(); |