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

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

Issue 87503004: Pass the Translate error type to the bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebasing) Created 7 years 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/translate/translate_ui_delegate.h ('k') | chrome/browser/ui/browser_commands.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_ui_delegate.cc
diff --git a/chrome/browser/translate/translate_ui_delegate.cc b/chrome/browser/translate/translate_ui_delegate.cc
index 79fb370ffe648299d1e553a15d715669480db8fe..e120798398d489d36947a148560afe32f0e12cc3 100644
--- a/chrome/browser/translate/translate_ui_delegate.cc
+++ b/chrome/browser/translate/translate_ui_delegate.cc
@@ -21,10 +21,12 @@
TranslateUIDelegate::TranslateUIDelegate(content::WebContents* web_contents,
const std::string& original_language,
- const std::string& target_language)
+ const std::string& target_language,
+ TranslateErrors::Type error_type)
: web_contents_(web_contents),
original_language_index_(NO_INDEX),
- target_language_index_(NO_INDEX) {
+ target_language_index_(NO_INDEX),
+ error_type_(error_type) {
DCHECK(web_contents_);
languages_ =
« no previous file with comments | « chrome/browser/translate/translate_ui_delegate.h ('k') | chrome/browser/ui/browser_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698