Reland r36541 (which went in without any commit log by some magic). Was...
Reland r36541 (which went in without any commit log by some magic). Was reverted in r36550. Now I'm relanding with the full description. Port back CLD to Linux and Mac by replacing Windows API calls with ICU's equivalent APIs for normalization. I also fixed bug 23553 (Traditional Chinese is not detected) by calling LanguageCode instead of LanguageCode_ISO_639_1. The latter covers only ISO 639-1, but there are languages detected by CLD not covered by ISO 639-1. In that case, ISO 639-2 is used. In case even ISO 639-2 does not cover (e.g. Traditional Chinese), another fallback is taken by LanguageCode. The html file for CLD testing (french_sentence.html) is explicitly labelled with charset=ISO-8859-1. Original Review: http://codereview.chromium.org/523108 BUG=25206,23553 TEST=1. CLD is built on Linux/Mac 2. The following test pass: - unit_tests: Extension*.DetectTabLang* and CompactLangDet*.* - browser_tests: ExtensionBrowserTest.Toolstrip 3. Install the 'cld extension' in chrome/common/extensions/docs/examples/api/i18n/cld and go to http://news.google.com.tw and 'zh-TW' shows up in the language badge at the upper right (upper-left in he/ar Chrome) corner. TBR=jcampan Review URL: http://codereview.chromium.org/545123 TBR=jshin@chromium.org Review URL: http://codereview.chromium.org/551070 TBR=jshin@chromium.org Review URL: http://codereview.chromium.org/549091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36552 0039d316-1c4b-4281-b951-d872f2087c98
Showing
- build/all.gyp 1 addition, 1 deletionbuild/all.gyp
- chrome/browser/extensions/extension_browsertests_misc.cc 1 addition, 7 deletionschrome/browser/extensions/extension_browsertests_misc.cc
- chrome/browser/extensions/extension_tabs_module.cc 0 additions, 5 deletionschrome/browser/extensions/extension_tabs_module.cc
- chrome/chrome_browser.gypi 0 additions, 2 deletionschrome/chrome_browser.gypi
- chrome/chrome_renderer.gypi 2 additions, 4 deletionschrome/chrome_renderer.gypi
- chrome/chrome_tests.gypi 1 addition, 5 deletionschrome/chrome_tests.gypi
- chrome/renderer/extensions/extension_api_client_unittest.cc 0 additions, 2 deletionschrome/renderer/extensions/extension_api_client_unittest.cc
- chrome/renderer/render_view.cc 9 additions, 14 deletionschrome/renderer/render_view.cc
- chrome/renderer/render_view.h 9 additions, 3 deletionschrome/renderer/render_view.h
- chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/french_sentence.html 1 addition, 0 deletions...lobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/french_sentence.html
- third_party/cld/bar/toolbar/cld/i18n/encodings/compact_lang_det/win/cld_scopedptr.h 1 addition, 6 deletions...r/cld/i18n/encodings/compact_lang_det/win/cld_scopedptr.h
- third_party/cld/bar/toolbar/cld/i18n/encodings/compact_lang_det/win/cld_unicodetext.cc 30 additions, 78 deletions...ld/i18n/encodings/compact_lang_det/win/cld_unicodetext.cc
- third_party/cld/bar/toolbar/cld/i18n/encodings/compact_lang_det/win/cld_unicodetext.h 3 additions, 4 deletions...cld/i18n/encodings/compact_lang_det/win/cld_unicodetext.h
- third_party/cld/base/string_util.h 6 additions, 0 deletionsthird_party/cld/base/string_util.h
- third_party/cld/cld.gyp 126 additions, 112 deletionsthird_party/cld/cld.gyp
Loading
Please register or sign in to comment