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

Unified Diff: trunk/src/chrome/renderer/translate/translate_helper.h

Issue 16045007: Revert 202427 "Translate: adopt html lang attribute if valid val..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 | trunk/src/chrome/renderer/translate/translate_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | trunk/src/chrome/renderer/translate/translate_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698