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

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: Created 6 years, 7 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..11089e1e063bffc831e48236edd4c75f5793abbb 100644
--- a/chrome/browser/translate/translate_tab_helper.cc
+++ b/chrome/browser/translate/translate_tab_helper.cc
@@ -123,6 +123,7 @@ void TranslateTabHelper::GetTranslateLanguages(
return;
*source = translate_tab_helper->GetLanguageState().original_language();
+ *source = TranslateDownloadManager::GetLanguageCode(*source);
Takashi Toyoshima 2014/06/04 20:39:33 Optional suggestion. If you want to store the tem
hajimehoshi 2014/06/05 08:42:53 Done.
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