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

Unified Diff: chrome/browser/translate/chrome_translate_client.cc

Issue 325483003: Remove unused Views Translate InfoBar code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/translate/chrome_translate_client.cc
diff --git a/chrome/browser/translate/chrome_translate_client.cc b/chrome/browser/translate/chrome_translate_client.cc
index 15fc4fe07cb9af4b1f3d9bcd03e421bc50b17dbd..d2c36522bc0036c685e5b62765211094a0748c31 100644
--- a/chrome/browser/translate/chrome_translate_client.cc
+++ b/chrome/browser/translate/chrome_translate_client.cc
@@ -218,7 +218,13 @@ int ChromeTranslateClient::GetInfobarIconID() const {
}
// ChromeTranslateClient::CreateInfoBar() is implemented in platform-specific
-// files.
+// files, except the TOOLKIT_VIEWS implementation, which has been removed.
+#if defined(TOOLKIT_VIEWS)
+scoped_ptr<infobars::InfoBar> ChromeTranslateClient::CreateInfoBar(
+ scoped_ptr<TranslateInfoBarDelegate> delegate) const {
+ return scoped_ptr<infobars::InfoBar>();
+}
+#endif
bool ChromeTranslateClient::IsTranslatableURL(const GURL& url) {
return TranslateService::IsTranslatableURL(url);

Powered by Google App Engine
This is Rietveld 408576698