From db9ece86cab5495f431fe8659419fa7e9ecc76c7 Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Wed, 17 Feb 2010 23:11:06 +0000 Subject: Per Dick Sites advice, adding the CLD repeat flag to help with the detection on some pages. This only marginally slows down the language detection. BUG=35156 TEST=Open http://app.jackrabbitclass.com/eventcalendar.asp?orgid=250131 in Chrome English. No translation infobar should be shown. Review URL: http://codereview.chromium.org/626008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39289 0039d316-1c4b-4281-b951-d872f2087c98 --- third_party/cld/encodings/compact_lang_det/compact_lang_det.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/cld/encodings/compact_lang_det/compact_lang_det.cc b/third_party/cld/encodings/compact_lang_det/compact_lang_det.cc index e5af200..350acd1 100644 --- a/third_party/cld/encodings/compact_lang_det/compact_lang_det.cc +++ b/third_party/cld/encodings/compact_lang_det/compact_lang_det.cc @@ -64,7 +64,7 @@ Language CompactLangDet::DetectLanguageSummary( bool* is_reliable) { double normalized_score3[3]; bool allow_extended_lang = false; - int flags = 0; + int flags = kCLDFlagRepeats; Language plus_one = UNKNOWN_LANGUAGE; const char* tld_hint = ""; int encoding_hint = UNKNOWN_ENCODING; -- cgit v1.1