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

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: Update comments, add early return for PolicyTest.DISABLED_TranslateEnabled. 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..61145e601c5038263080e53db817f09c0df76b10 100644
--- a/chrome/browser/translate/chrome_translate_client.cc
+++ b/chrome/browser/translate/chrome_translate_client.cc
@@ -21,6 +21,7 @@
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/translate/translate_bubble_factory.h"
#include "chrome/common/pref_names.h"
+#include "components/infobars/core/infobar.h"
#include "components/translate/content/common/translate_messages.h"
#include "components/translate/core/browser/page_translated_details.h"
#include "components/translate/core/browser/translate_accept_languages.h"
@@ -218,7 +219,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