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

Unified Diff: components/translate/core/browser/translate_infobar_delegate.cc

Issue 809333003: Upstream //ios/chrome/browser/translate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 11 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: components/translate/core/browser/translate_infobar_delegate.cc
diff --git a/components/translate/core/browser/translate_infobar_delegate.cc b/components/translate/core/browser/translate_infobar_delegate.cc
index 234f773cc008c623ae8b3dbabe4940dade3d11af..0d68e1381f98eb575bb39c1f11ecdc496c878ee0 100644
--- a/components/translate/core/browser/translate_infobar_delegate.cc
+++ b/components/translate/core/browser/translate_infobar_delegate.cc
@@ -369,4 +369,12 @@ TranslateInfoBarDelegate*
return this;
}
+#if defined(OS_IOS)
+void TranslateInfoBarDelegate::ShowNeverTranslateInfobar() {
+ Create(true, translate_manager_, infobar()->owner(), is_off_the_record_,
+ translate::TRANSLATE_STEP_NEVER_TRANSLATE, original_language_code(),
+ target_language_code(), TranslateErrors::NONE, false);
+}
+#endif
+
} // namespace translate

Powered by Google App Engine
This is Rietveld 408576698