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

Issue 1849323002: Adjusted to check language3[0] only and ignore the summary return. (Closed)

Created:
4 years, 8 months ago by rkaplow
Modified:
4 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adjusted to check language3[0] only and ignore the summary return. Currently the is_valid_language check is on the summary language. I'm trying to fix what seems to be a bug introduced here: https://codereview.chromium.org/1263613002 When that change switched from the summary language to language3[0] (The description shows this was intentional, with "Edit CLD2 result to return top language instead of summary language.") When mcindy@ switched from summary language to top language, shouldn't they have also used that language to validate unknownness? I don't understand why you currently want to check the summary language when you're returning the language3[0] as the result. BUG=599940 Committed: https://crrev.com/80f25b767e1a4b060f085b82e32f016ea4db881e Cr-Commit-Position: refs/heads/master@{#391255}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -5 lines) Patch
M components/translate/core/language_detection/language_detection_util.cc View 1 chunk +6 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
rkaplow
4 years, 8 months ago (2016-04-01 18:55:17 UTC) #2
Andrew Hayden (chromium.org)
I'd like to hear riesa@'s thoughts on this. I looked through the CLD2 code but ...
4 years, 8 months ago (2016-04-11 10:20:51 UTC) #3
rkaplow
On 2016/04/11 10:20:51, Andrew Hayden (chromium.org) wrote: > I'd like to hear riesa@'s thoughts on ...
4 years, 8 months ago (2016-04-11 14:07:31 UTC) #4
Andrew Hayden (chromium.org)
Thanks for the context! Can you put some of that into the related bug? This ...
4 years, 8 months ago (2016-04-11 14:12:46 UTC) #5
rkaplow
On 2016/04/11 14:12:46, Andrew Hayden (chromium.org) wrote: > Thanks for the context! Can you put ...
4 years, 8 months ago (2016-04-11 14:15:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849323002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849323002/1
4 years, 7 months ago (2016-05-03 15:21:56 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-03 16:21:32 UTC) #11
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 16:23:31 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/80f25b767e1a4b060f085b82e32f016ea4db881e
Cr-Commit-Position: refs/heads/master@{#391255}

Powered by Google App Engine
This is Rietveld 408576698