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

Issue 2359793003: Modifying language detection code (Closed)

Created:
4 years, 3 months ago by Anton Bakalov
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Modifying language detection code If the language detection model CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. For more information, please see the bug entry below. BUG=649002 Committed: https://crrev.com/52247dcede791eae0c75996335a9b2bb0d9df236 Cr-Commit-Position: refs/heads/master@{#421451}

Patch Set 1 #

Patch Set 2 : Modifying the bindings code to ignore xx-Latn predictions #

Total comments: 4

Patch Set 3 : Improvements to i18n_custom_bindings.cc #

Total comments: 2

Patch Set 4 : Extending the comment about xx-Latn languages #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -5 lines) Patch
M components/translate/core/language_detection/language_detection_util.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/renderer/i18n_custom_bindings.cc View 1 2 3 3 chunks +20 lines, -5 lines 0 comments Download

Messages

Total messages: 35 (22 generated)
Anton Bakalov
4 years, 3 months ago (2016-09-21 16:20:29 UTC) #4
Andrew Hayden (chromium.org)
Please add a BUG=, and describe the main points of the e-mail thread where this ...
4 years, 3 months ago (2016-09-21 16:43:08 UTC) #5
Andrew Hayden (chromium.org)
LGTM
4 years, 3 months ago (2016-09-22 12:11:32 UTC) #10
Anton Bakalov
4 years, 2 months ago (2016-09-27 18:02:34 UTC) #15
Devlin
https://codereview.chromium.org/2359793003/diff/20001/extensions/renderer/i18n_custom_bindings.cc File extensions/renderer/i18n_custom_bindings.cc (right): https://codereview.chromium.org/2359793003/diff/20001/extensions/renderer/i18n_custom_bindings.cc#newcode138 extensions/renderer/i18n_custom_bindings.cc:138: detected_languages->clear(); Isn't this always the case? Could we DCHECK(detected_languages->empty()) ...
4 years, 2 months ago (2016-09-27 18:34:43 UTC) #18
Anton Bakalov
Thanks for the good suggestions, Devlin! https://codereview.chromium.org/2359793003/diff/20001/extensions/renderer/i18n_custom_bindings.cc File extensions/renderer/i18n_custom_bindings.cc (right): https://codereview.chromium.org/2359793003/diff/20001/extensions/renderer/i18n_custom_bindings.cc#newcode138 extensions/renderer/i18n_custom_bindings.cc:138: detected_languages->clear(); On 2016/09/27 ...
4 years, 2 months ago (2016-09-27 20:00:48 UTC) #21
Devlin
lgtm % comment nit https://codereview.chromium.org/2359793003/diff/40001/extensions/renderer/i18n_custom_bindings.cc File extensions/renderer/i18n_custom_bindings.cc (right): https://codereview.chromium.org/2359793003/diff/40001/extensions/renderer/i18n_custom_bindings.cc#newcode158 extensions/renderer/i18n_custom_bindings.cc:158: // To maintain backwards compatibility, ...
4 years, 2 months ago (2016-09-27 22:34:28 UTC) #24
Devlin
Also, please update the CL description. Descriptions in Rietveld: [First Line - becomes the title] ...
4 years, 2 months ago (2016-09-27 22:37:12 UTC) #25
Anton Bakalov
Thanks, Devlin!
4 years, 2 months ago (2016-09-28 04:21:57 UTC) #27
Anton Bakalov
https://codereview.chromium.org/2359793003/diff/40001/extensions/renderer/i18n_custom_bindings.cc File extensions/renderer/i18n_custom_bindings.cc (right): https://codereview.chromium.org/2359793003/diff/40001/extensions/renderer/i18n_custom_bindings.cc#newcode158 extensions/renderer/i18n_custom_bindings.cc:158: // To maintain backwards compatibility, xx-Latn predictions are ignored ...
4 years, 2 months ago (2016-09-28 04:23:27 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2359793003/60001
4 years, 2 months ago (2016-09-28 04:25:23 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-28 05:07:37 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 05:09:09 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/52247dcede791eae0c75996335a9b2bb0d9df236
Cr-Commit-Position: refs/heads/master@{#421451}

Powered by Google App Engine
This is Rietveld 408576698