| Index: chrome/renderer/translate/translate_helper.h
|
| diff --git a/chrome/renderer/translate/translate_helper.h b/chrome/renderer/translate/translate_helper.h
|
| index eebc9ff040209c72ab7da8740d28013ab6ccb238..6c6662c4805fc44f259057ea250799a532353318 100644
|
| --- a/chrome/renderer/translate/translate_helper.h
|
| +++ b/chrome/renderer/translate/translate_helper.h
|
| @@ -96,18 +96,23 @@ class TranslateHelper : public content::RenderViewObserver {
|
| CLDAgreeWithLanguageCodeHavingCountryCode);
|
| FRIEND_TEST_ALL_PREFIXES(TranslateHelperTest,
|
| InvalidLanguageMetaTagProviding);
|
| + FRIEND_TEST_ALL_PREFIXES(TranslateHelperTest, AdoptHtmlLang);
|
|
|
| - // Correct language code if it contains well-known mistakes.
|
| + // Corrects 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.
|
| + // Converts language code to the one used in server supporting list.
|
| static void ConvertLanguageCodeSynonym(std::string* code);
|
|
|
| - // Reset language code if the specified string is apparently invalid.
|
| + // Resets language code if the specified string is apparently invalid.
|
| static void ResetInvalidLanguageCode(std::string* code);
|
|
|
| - // Determine content page language from Content-Language code and contents.
|
| + // 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.
|
| static std::string DeterminePageLanguage(const std::string& code,
|
| + const std::string& html_lang,
|
| const string16& contents,
|
| std::string* cld_language,
|
| bool* is_cld_reliable);
|
|
|