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

Unified Diff: chrome/renderer/translate_helper.h

Issue 12221085: Translate: split language code typo correction to apply unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | chrome/renderer/translate_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/translate_helper.h
diff --git a/chrome/renderer/translate_helper.h b/chrome/renderer/translate_helper.h
index dab2006a36723740f4de75da380fb81f65714b3c..b5f3ea180784d9dad5aef685ed0819cc2ad6455c 100644
--- a/chrome/renderer/translate_helper.h
+++ b/chrome/renderer/translate_helper.h
@@ -66,8 +66,12 @@ class TranslateHelper : public content::RenderViewObserver {
virtual bool DontDelayTasks();
private:
+ FRIEND_TEST_ALL_PREFIXES(TranslateHelperTest, LanguageCodeTypoCorrection);
FRIEND_TEST_ALL_PREFIXES(TranslateHelperTest, LanguageCodeSynonyms);
+ // Correct language code if it contains well-known mistakes.
+ static void CorrectLanguageCodeTypo(std::string* code);
+
// Convert language code to the one used in server supporting list.
static void ConvertLanguageCodeSynonym(std::string* code);
« no previous file with comments | « no previous file | chrome/renderer/translate_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698