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

Unified Diff: components/translate/common/translate_util.cc

Issue 68823004: [Translate] Apply language synonyms to the target language (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chrome/browser/translate/translate_prefs.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/common/translate_util.cc
diff --git a/components/translate/common/translate_util.cc b/components/translate/common/translate_util.cc
index 4e151d31e442b0bf9b45794049e5102063e256d4..0ed624de7d9f276eb21baff037d5dcb2d1153596 100644
--- a/components/translate/common/translate_util.cc
+++ b/components/translate/common/translate_util.cc
@@ -77,7 +77,7 @@ void ToTranslateLanguageSynonym(std::string* language) {
if (main_part.empty())
return;
- // Apply liner search here because number of items in the list is just four.
+ // Apply linear search here because number of items in the list is just four.
for (size_t i = 0; i < arraysize(kLanguageCodeSynonyms); ++i) {
if (main_part == kLanguageCodeSynonyms[i].chrome_language) {
main_part = std::string(kLanguageCodeSynonyms[i].translate_language);
« no previous file with comments | « chrome/browser/translate/translate_prefs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698