summaryrefslogtreecommitdiffstats
path: root/third_party/cld
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 23:11:06 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 23:11:06 +0000
commitdb9ece86cab5495f431fe8659419fa7e9ecc76c7 (patch)
tree7339e97fc2389b42bb7c09ec2fabe3a33c043d16 /third_party/cld
parent44c504386e206b172696538f02ae3df7217c6ee2 (diff)
downloadchromium_src-db9ece86cab5495f431fe8659419fa7e9ecc76c7.zip
chromium_src-db9ece86cab5495f431fe8659419fa7e9ecc76c7.tar.gz
chromium_src-db9ece86cab5495f431fe8659419fa7e9ecc76c7.tar.bz2
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
Diffstat (limited to 'third_party/cld')
-rw-r--r--third_party/cld/encodings/compact_lang_det/compact_lang_det.cc2
1 files changed, 1 insertions, 1 deletions
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;