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

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

Issue 317623003: Translate: Bug fix: need to normalize the language code for Translate UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: toyoshim's review 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_tab_helper.cc
diff --git a/chrome/browser/translate/translate_tab_helper.cc b/chrome/browser/translate/translate_tab_helper.cc
index 668e7f17e3821d28f04a564f88c75c95cbb14ee3..e7d3b02591f20f219668247763adaf91973376c6 100644
--- a/chrome/browser/translate/translate_tab_helper.cc
+++ b/chrome/browser/translate/translate_tab_helper.cc
@@ -122,7 +122,8 @@ void TranslateTabHelper::GetTranslateLanguages(
if (!translate_tab_helper)
return;
- *source = translate_tab_helper->GetLanguageState().original_language();
+ *source = TranslateDownloadManager::GetLanguageCode(
+ translate_tab_helper->GetLanguageState().original_language());
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698