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

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, 1 month 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/translate_ui_delegate.cc
diff --git a/chrome/browser/translate/translate_ui_delegate.cc b/chrome/browser/translate/translate_ui_delegate.cc
index 4e40115a119ff9fd20dc2c04ed5e92c36bda032c..a29023eca76a4e5dbf5789a19188b747d8ec0294 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) {
languages_ =
GetSortedLanguageNames(g_browser_process->GetApplicationLocale());

Powered by Google App Engine
This is Rietveld 408576698