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

Issue 15987004: Translate: Filter and record languages whose names Chrome doesn't show (Closed)

Created:
7 years, 6 months ago by hajimehoshi
Modified:
7 years, 6 months ago
CC:
chromium-reviews, MAD, Ilya Sherman, jar (doing other things), jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Translate: Filter and record languages whose names Chrome doesn't show 1) Filter undisplayable languages (, whose names Chrome doesn't show) 2) Record undisplayable languages 3) Rename TranslateManagerMetrics to TranslateBrowserMetrics 4) Obsolete Translate.ServerReportedUnsupportedLanguage The Tranlate server sends the language list, and this may include a language UI can't deal with for lack of the resource. This CL filters such languages and reports them by UMA 'Translate.UndisplayableLanguage'. This UMA can be substitute of 'Translate.ServerReportedUnsupportedLanguage'. 'Translate.ServerReportedUnsupportedLanguage' is no longer needed and I made it obsolete. Originally, we intended to implement the other UMA 'Translate.UnavailableLanguage' https://chromiumcodereview.appspot.com/15311006/, but changed our direction. Moreover, Translate.ServerReportedUnsupportedLanguage was supposed to be removed in that CL, but I kept it unchanged accidentally. BUG=242142 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206371

Patch Set 1 #

Total comments: 2

Patch Set 2 : Renamed: TranslateManagerMetrics -> TranslateBrowserMetrics #

Patch Set 3 : Made Translate.ServerReportedUnsupportedLanguage deprecated #

Total comments: 8

Patch Set 4 : Removed the nits #

Patch Set 5 : (Rebasing) #

Patch Set 6 : (Rebasing) #

Patch Set 7 : Bug fix: added 'return' #

Patch Set 8 : (Rebasing) #

Patch Set 9 : (Rebasing) #

Patch Set 10 : (Rebasing) #

Patch Set 11 : Modified the test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -466 lines) Patch
A + chrome/browser/translate/translate_browser_metrics.h View 1 2 3 4 2 chunks +12 lines, -11 lines 0 comments Download
A + chrome/browser/translate/translate_browser_metrics.cc View 1 2 3 4 5 5 chunks +25 lines, -23 lines 0 comments Download
A + chrome/browser/translate/translate_browser_metrics_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +54 lines, -51 lines 0 comments Download
M chrome/browser/translate/translate_language_list.cc View 1 2 3 4 5 6 7 4 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 2 3 4 5 6 7 9 chunks +24 lines, -29 lines 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -4 lines 0 comments Download
D chrome/browser/translate/translate_manager_metrics.h View 1 2 3 4 1 chunk +0 lines, -60 lines 0 comments Download
D chrome/browser/translate/translate_manager_metrics.cc View 1 2 3 4 5 1 chunk +0 lines, -89 lines 0 comments Download
D chrome/browser/translate/translate_manager_metrics_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -178 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -0 lines 0 comments Download
M ui/base/l10n/l10n_util.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M ui/base/l10n/l10n_util.cc View 1 2 3 4 5 6 7 4 chunks +16 lines, -15 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
hajimehoshi
Could you take a look?
7 years, 6 months ago (2013-05-30 05:35:50 UTC) #1
Takashi Toyoshima
lgtm with one request. https://codereview.chromium.org/15987004/diff/1/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): https://codereview.chromium.org/15987004/diff/1/chrome/browser/translate/translate_language_list.cc#newcode16 chrome/browser/translate/translate_language_list.cc:16: #include "chrome/browser/translate/translate_manager_metrics.h" now that we ...
7 years, 6 months ago (2013-05-30 06:04:31 UTC) #2
hajimehoshi
Thanks! (sorry but I rebased it at the same time as fixing it.) https://chromiumcodereview.appspot.com/15987004/diff/1/chrome/browser/translate/translate_language_list.cc File ...
7 years, 6 months ago (2013-05-30 06:44:56 UTC) #3
Takashi Toyoshima
still lgtm. Thanks!
7 years, 6 months ago (2013-05-30 06:54:11 UTC) #4
Ilya Sherman
LGTM with nits: https://codereview.chromium.org/15987004/diff/7001/chrome/browser/translate/translate_browser_metrics.cc File chrome/browser/translate/translate_browser_metrics.cc (right): https://codereview.chromium.org/15987004/diff/7001/chrome/browser/translate/translate_browser_metrics.cc#newcode25 chrome/browser/translate/translate_browser_metrics.cc:25: "Translate.UndisplayableLanguage"; nit: Alphabetize? https://codereview.chromium.org/15987004/diff/7001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml ...
7 years, 6 months ago (2013-06-01 00:59:47 UTC) #5
hajimehoshi
Thanks! https://codereview.chromium.org/15987004/diff/7001/chrome/browser/translate/translate_browser_metrics.cc File chrome/browser/translate/translate_browser_metrics.cc (right): https://codereview.chromium.org/15987004/diff/7001/chrome/browser/translate/translate_browser_metrics.cc#newcode25 chrome/browser/translate/translate_browser_metrics.cc:25: "Translate.UndisplayableLanguage"; On 2013/06/01 00:59:47, Ilya Sherman wrote: > ...
7 years, 6 months ago (2013-06-05 04:44:05 UTC) #6
hajimehoshi
+tony, can you take a look at ui/base/l10n/*? Thank you in advance. On 2013/06/05 04:44:05, ...
7 years, 6 months ago (2013-06-05 05:05:21 UTC) #7
jungshik at Google
What do you mean by 'undisplayable languages'? The APi you use is for finding out ...
7 years, 6 months ago (2013-06-07 22:37:38 UTC) #8
hajimehoshi
For example, Haitian (ht) on the Vietnamese (vi) locale. ICU (third_party/icu/source/data/lang/vi.txt) doesn't define 'ht'. Even ...
7 years, 6 months ago (2013-06-10 04:39:42 UTC) #9
hajimehoshi
I modified the description in an understandable way. On 2013/06/10 04:39:42, hajimehoshi wrote: > For ...
7 years, 6 months ago (2013-06-10 06:34:47 UTC) #10
hajimehoshi
ping On 2013/06/10 06:34:47, hajimehoshi wrote: > I modified the description in an understandable way. ...
7 years, 6 months ago (2013-06-13 02:59:26 UTC) #11
jungshik at Google
Thank you for the explanation. Then, it looks good to me. Sorry for the delay.
7 years, 6 months ago (2013-06-13 05:45:00 UTC) #12
hajimehoshi
Thanks. I'd be glad if you gave me the 'lgtm' keyword because you are an ...
7 years, 6 months ago (2013-06-13 05:48:02 UTC) #13
jungshik at Google
LGTM (I thought 'looks good to me' would be picked up as well. :-) On ...
7 years, 6 months ago (2013-06-13 17:03:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/15987004/68001
7 years, 6 months ago (2013-06-14 03:06:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/15987004/87001
7 years, 6 months ago (2013-06-14 05:16:12 UTC) #16
commit-bot: I haz the power
7 years, 6 months ago (2013-06-14 08:39:42 UTC) #17
Message was sent while issue was closed.
Change committed as 206371

Powered by Google App Engine
This is Rietveld 408576698