Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Issue 11358121: support common content-language mistakes (Closed)

Created:
8 years, 1 month ago by bcwhite
Modified:
8 years, 1 month ago
Reviewers:
MAD, James Hawkins
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

It seems that the improved recognition of the Content-Language information means that new web pages with incorrect language specification are being found. This CL corrects some of the common errors so that the language specification is recognized by the translate helper. BUG=159487 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=166276

Patch Set 1 #

Total comments: 7

Patch Set 2 : remove unnecessary braces #

Total comments: 4

Patch Set 3 : improved test name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -1 line) Patch
M chrome/renderer/translate_helper.cc View 1 1 chunk +14 lines, -1 line 0 comments Download
M chrome/renderer/translate_helper_browsertest.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
bcwhite
8 years, 1 month ago (2012-11-06 17:20:59 UTC) #1
MAD
LGTM with a few small requests... Thanks for the quick fix! BYE MAD https://codereview.chromium.org/11358121/diff/1/chrome/renderer/translate_helper.cc File ...
8 years, 1 month ago (2012-11-06 18:00:20 UTC) #2
bcwhite
https://codereview.chromium.org/11358121/diff/1/chrome/renderer/translate_helper.cc File chrome/renderer/translate_helper.cc (right): https://codereview.chromium.org/11358121/diff/1/chrome/renderer/translate_helper.cc#newcode85 chrome/renderer/translate_helper.cc:85: language[underscore_index] = '-'; Doh! I am going to do ...
8 years, 1 month ago (2012-11-06 18:37:48 UTC) #3
MAD
still lgtm... https://codereview.chromium.org/11358121/diff/1/chrome/renderer/translate_helper.cc File chrome/renderer/translate_helper.cc (right): https://codereview.chromium.org/11358121/diff/1/chrome/renderer/translate_helper.cc#newcode86 chrome/renderer/translate_helper.cc:86: } On 2012/11/06 18:37:49, bcwhite wrote: > ...
8 years, 1 month ago (2012-11-06 18:39:30 UTC) #4
bcwhite
James, could I get an OWNERS review, please? -- Brian
8 years, 1 month ago (2012-11-06 18:42:27 UTC) #5
James Hawkins
https://codereview.chromium.org/11358121/diff/6002/chrome/renderer/translate_helper_browsertest.cc File chrome/renderer/translate_helper_browsertest.cc (right): https://codereview.chromium.org/11358121/diff/6002/chrome/renderer/translate_helper_browsertest.cc#newcode398 chrome/renderer/translate_helper_browsertest.cc:398: // Tests that the language meta tag is converted ...
8 years, 1 month ago (2012-11-06 18:47:49 UTC) #6
bcwhite
New CL uploaded. https://codereview.chromium.org/11358121/diff/6002/chrome/renderer/translate_helper_browsertest.cc File chrome/renderer/translate_helper_browsertest.cc (right): https://codereview.chromium.org/11358121/diff/6002/chrome/renderer/translate_helper_browsertest.cc#newcode398 chrome/renderer/translate_helper_browsertest.cc:398: // Tests that the language meta ...
8 years, 1 month ago (2012-11-06 18:55:23 UTC) #7
James Hawkins
lgtm
8 years, 1 month ago (2012-11-06 19:30:20 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bcwhite@chromium.org/11358121/12001
8 years, 1 month ago (2012-11-06 19:54:55 UTC) #9
commit-bot: I haz the power
8 years, 1 month ago (2012-11-06 21:58:10 UTC) #10
Change committed as 166276

Powered by Google App Engine
This is Rietveld 408576698