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

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: Sync and rebase 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
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/translate/translate_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 be059d0ad7e3885fea0a1b500c8272795549e9ae..6abb359d7edd93c53952364d8831645d74d70560 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/language_state.h"
#include "components/translate/core/browser/page_translated_details.h"
@@ -220,7 +221,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);
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/translate/translate_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698