Skip to content

Commit

Permalink
Per Dick Sites advice, adding the CLD repeat flag to help with the
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jcampan@chromium.org committed Feb 17, 2010
1 parent 44c5043 commit db9ece8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit db9ece8

Please sign in to comment.