Get the document language directly from WebKit rather than trying to figure
it out ourselves. Since WebKit is already case-insensitive, this fixes test-case #3. Test-Case #1 requires WebKit support for extracting the language from the HTTP headers (https://bugs.webkit.org/show_bug.cgi?id=97929). Note that this patch will fail completely until a WebKit patch to export this information is accepted (https://bugs.webkit.org/show_bug.cgi?id=98066). BUG=145689 Review URL: https://chromiumcodereview.appspot.com/11052002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162212 0039d316-1c4b-4281-b951-d872f2087c98
Showing
chrome/renderer/translate_helper.cc
100644 → 100755
Please register or sign in to comment