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

Unified Diff: chrome/browser/resources/translate.js

Issue 25531002: Move language detection to a component (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Run translate unittests on iOS Created 7 years, 2 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
Index: chrome/browser/resources/translate.js
diff --git a/chrome/browser/resources/translate.js b/chrome/browser/resources/translate.js
index 93474c9f70dbf44b45af9575964ed51107c856ea..9d389ff87a44b268fff82b06da3db45ab1d0954f 100644
--- a/chrome/browser/resources/translate.js
+++ b/chrome/browser/resources/translate.js
@@ -179,7 +179,7 @@ cr.googleTranslate = (function() {
if (!libReady || !finished || errorCode != ERROR['NONE'])
return '';
if (!lib.getDetectedLanguage)
- return 'und'; // defined as chrome::kUnknownLanguageCode in C++ world.
+ return 'und'; // Defined as translate::kUnknownLanguageCode in C++.
return lib.getDetectedLanguage();
},
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/translate/translate_accept_languages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698