Index: trunk/src/chrome/renderer/translate/translate_helper.h |
=================================================================== |
--- trunk/src/chrome/renderer/translate/translate_helper.h (revision 202442) |
+++ trunk/src/chrome/renderer/translate/translate_helper.h (working copy) |
@@ -96,23 +96,18 @@ |
CLDAgreeWithLanguageCodeHavingCountryCode); |
FRIEND_TEST_ALL_PREFIXES(TranslateHelperTest, |
InvalidLanguageMetaTagProviding); |
- FRIEND_TEST_ALL_PREFIXES(TranslateHelperTest, AdoptHtmlLang); |
- // Corrects language code if it contains well-known mistakes. |
+ // Correct language code if it contains well-known mistakes. |
static void CorrectLanguageCodeTypo(std::string* code); |
- // Converts language code to the one used in server supporting list. |
+ // Convert language code to the one used in server supporting list. |
static void ConvertLanguageCodeSynonym(std::string* code); |
- // Resets language code if the specified string is apparently invalid. |
+ // Reset language code if the specified string is apparently invalid. |
static void ResetInvalidLanguageCode(std::string* code); |
- // Applies a series of language code modification in proper order. |
- static void ApplyLanguageCodeCorrection(std::string* code); |
- |
- // Determines content page language from Content-Language code and contents. |
+ // Determine content page language from Content-Language code and contents. |
static std::string DeterminePageLanguage(const std::string& code, |
- const std::string& html_lang, |
const string16& contents, |
std::string* cld_language, |
bool* is_cld_reliable); |