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

Issue 11052002: Get the document language directly from WebKit (Closed)

Created:
8 years, 2 months ago by bcwhite
Modified:
8 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, darin-cc_chromium.org
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162212

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use document language determined by WebKit for translation (now with improved comment). #

Patch Set 3 : Reduced patch that only expects langauge from http-equiv setting. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -44 lines) Patch
M chrome/renderer/translate_helper.h View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/renderer/translate_helper.cc View 1 2 3 chunks +20 lines, -37 lines 0 comments Download
M chrome/renderer/translate_helper_browsertest.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
bcwhite
8 years, 2 months ago (2012-10-02 19:31:54 UTC) #1
bcwhite
CL to export this value has now been accepted into base WebKit. CL to support ...
8 years, 2 months ago (2012-10-02 19:44:49 UTC) #2
MAD
LGTM with a small comment nit... Thanks! BYE MAD https://codereview.chromium.org/11052002/diff/1/chrome/renderer/translate_helper.cc File chrome/renderer/translate_helper.cc (right): https://codereview.chromium.org/11052002/diff/1/chrome/renderer/translate_helper.cc#newcode65 chrome/renderer/translate_helper.cc:65: ...
8 years, 2 months ago (2012-10-02 20:15:26 UTC) #3
bcwhite
I need reviews from two OWNERS on this. Thanks!
8 years, 2 months ago (2012-10-03 14:52:21 UTC) #4
jschuh
On 2012/10/03 14:52:21, bcwhite wrote: > I need reviews from two OWNERS on this. Thanks! ...
8 years, 2 months ago (2012-10-03 15:09:43 UTC) #5
bcwhite1
On 2012/10/03 14:52:21, bcwhite wrote: > I need reviews from two OWNERS on this. Thanks! ...
8 years, 2 months ago (2012-10-03 15:16:40 UTC) #6
jschuh
On 2012/10/03 15:16:40, bcwhite_google.com wrote: > On 2012/10/03 14:52:21, bcwhite wrote: > > > I ...
8 years, 2 months ago (2012-10-03 15:49:57 UTC) #7
bcwhite
-jschuh +avi Please provide OWNERS review for content/common file. Thanks.
8 years, 2 months ago (2012-10-03 16:19:02 UTC) #8
bcwhite
+jhawkins Would an OWNER please review this? It's been over a week. Thanks.
8 years, 2 months ago (2012-10-12 14:53:57 UTC) #9
James Hawkins
lgtm
8 years, 2 months ago (2012-10-12 22:43:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bcwhite@chromium.org/11052002/13001
8 years, 2 months ago (2012-10-15 14:34:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bcwhite@chromium.org/11052002/13001
8 years, 2 months ago (2012-10-16 14:00:22 UTC) #12
commit-bot: I haz the power
Change committed as 162212
8 years, 2 months ago (2012-10-16 19:35:07 UTC) #13
Lei Zhang
There's something weird with your client. In the raw patch: Index: chrome/renderer/translate_helper.cc diff --git a/chrome/renderer/translate_helper.cc ...
8 years, 2 months ago (2012-10-16 20:42:08 UTC) #14
bcwhite
> There's something weird with your client. In the raw patch: Yeah. The presubmit noted ...
8 years, 2 months ago (2012-10-16 20:47:03 UTC) #15
bcwhite
8 years, 2 months ago (2012-10-17 17:48:40 UTC) #16
Looks like someone else submitted first.

Powered by Google App Engine
This is Rietveld 408576698