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

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

Issue 322733002: Translate: Bug fix: need to normalize the language code for Translate UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/chrome_translate_client.cc
diff --git a/chrome/browser/translate/chrome_translate_client.cc b/chrome/browser/translate/chrome_translate_client.cc
index 15fc4fe07cb9af4b1f3d9bcd03e421bc50b17dbd..799b16f9e86b97479517d3f170b92d0e09ac9e93 100644
--- a/chrome/browser/translate/chrome_translate_client.cc
+++ b/chrome/browser/translate/chrome_translate_client.cc
@@ -126,7 +126,8 @@ void ChromeTranslateClient::GetTranslateLanguages(
if (!chrome_translate_client)
return;
- *source = chrome_translate_client->GetLanguageState().original_language();
+ *source = TranslateDownloadManager::GetLanguageCode(
Takashi Toyoshima 2014/06/09 05:23:18 take over from https://codereview.chromium.org/317
+ chrome_translate_client->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