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

Issue 131203002: Move LanguageUsageMetrics and TranslateBrowserMetrics to components (Closed)

Created:
6 years, 11 months ago by droger
Modified:
4 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move LanguageUsageMetrics and TranslateBrowserMetrics to components LanguageUsageMetrics is moved to its own component because it is used both in the translate component and directly in the browser. TranslateBrowserMetrics is moved to the translate component. BUG=331509 TBR=jochen Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243946

Patch Set 1 : . #

Total comments: 7

Patch Set 2 : Review comments #

Patch Set 3 : Fix compilation #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -600 lines) Patch
M BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
D chrome/browser/language_usage_metrics.h View 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/browser/language_usage_metrics.cc View 1 chunk +0 lines, -71 lines 0 comments Download
D chrome/browser/language_usage_metrics_unittest.cc View 1 chunk +0 lines, -103 lines 0 comments Download
D chrome/browser/translate/translate_browser_metrics.h View 1 chunk +0 lines, -64 lines 0 comments Download
D chrome/browser/translate/translate_browser_metrics.cc View 1 chunk +0 lines, -91 lines 0 comments Download
D chrome/browser/translate/translate_browser_metrics_unittest.cc View 1 chunk +0 lines, -187 lines 0 comments Download
M chrome/browser/translate/translate_language_list.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_manager.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 3 chunks +1 line, -5 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M components/components.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 5 chunks +7 lines, -0 lines 0 comments Download
A + components/language_usage_metrics.gypi View 2 3 2 chunks +4 lines, -4 lines 0 comments Download
A + components/language_usage_metrics/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/language_usage_metrics/language_usage_metrics.h View 1 3 chunks +7 lines, -3 lines 0 comments Download
A + components/language_usage_metrics/language_usage_metrics.cc View 1 3 chunks +5 lines, -1 line 0 comments Download
A + components/language_usage_metrics/language_usage_metrics_unittest.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M components/translate.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
M components/translate/DEPS View 1 chunk +5 lines, -1 line 0 comments Download
A + components/translate/core/browser/translate_browser_metrics.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/translate/core/browser/translate_browser_metrics.cc View 1 2 chunks +9 lines, -6 lines 0 comments Download
A + components/translate/core/browser/translate_browser_metrics_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + tools/gn/secondary/components/language_usage_metrics/BUILD.gn View 1 1 chunk +4 lines, -4 lines 0 comments Download
M tools/gn/secondary/components/translate/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
droger
6 years, 11 months ago (2014-01-09 09:04:44 UTC) #1
blundell
LGTM with nits. +joi@. https://codereview.chromium.org/131203002/diff/30001/components/components_tests.gyp File components/components_tests.gyp (right): https://codereview.chromium.org/131203002/diff/30001/components/components_tests.gyp#newcode158 components/components_tests.gyp:158: ['include', '^auto_login_parser/'], Can you add ...
6 years, 11 months ago (2014-01-09 09:53:08 UTC) #2
Jói
LGTM https://codereview.chromium.org/131203002/diff/30001/components/language_usage_metrics/language_usage_metrics.h File components/language_usage_metrics/language_usage_metrics.h (right): https://codereview.chromium.org/131203002/diff/30001/components/language_usage_metrics/language_usage_metrics.h#newcode15 components/language_usage_metrics/language_usage_metrics.h:15: class LanguageUsageMetrics { Code in a component located ...
6 years, 11 months ago (2014-01-09 10:44:14 UTC) #3
blundell
https://codereview.chromium.org/131203002/diff/30001/components/translate/core/browser/translate_browser_metrics.h File components/translate/core/browser/translate_browser_metrics.h (right): https://codereview.chromium.org/131203002/diff/30001/components/translate/core/browser/translate_browser_metrics.h#newcode10 components/translate/core/browser/translate_browser_metrics.h:10: namespace TranslateBrowserMetrics { Jói: For iterative refactorings, we were ...
6 years, 11 months ago (2014-01-09 10:47:04 UTC) #4
Jói
Fine by me. On Thu, Jan 9, 2014 at 10:47 AM, <blundell@chromium.org> wrote: > > ...
6 years, 11 months ago (2014-01-09 10:50:31 UTC) #5
droger
+mad for translate +tfarina for BUILD files https://codereview.chromium.org/131203002/diff/30001/components/language_usage_metrics/language_usage_metrics.h File components/language_usage_metrics/language_usage_metrics.h (right): https://codereview.chromium.org/131203002/diff/30001/components/language_usage_metrics/language_usage_metrics.h#newcode15 components/language_usage_metrics/language_usage_metrics.h:15: class LanguageUsageMetrics ...
6 years, 11 months ago (2014-01-09 11:52:27 UTC) #6
tfarina
BUILD.gn lgtm.
6 years, 11 months ago (2014-01-09 12:49:25 UTC) #7
MAD
LGTM...
6 years, 11 months ago (2014-01-09 13:38:32 UTC) #8
droger
TBR=jochen
6 years, 11 months ago (2014-01-09 13:56:30 UTC) #9
droger
TBR=jochen
6 years, 11 months ago (2014-01-09 13:56:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/131203002/360001
6 years, 11 months ago (2014-01-09 13:57:23 UTC) #11
commit-bot: I haz the power
Failed to apply patch for components/components_tests.gyp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 11 months ago (2014-01-09 13:57:39 UTC) #12
jochen (gone - plz use gerrit)
On 2014/01/09 13:56:49, droger wrote: > TBR=jochen which part are you tbr'ing me for?
6 years, 11 months ago (2014-01-09 13:58:02 UTC) #13
droger
On 2014/01/09 13:58:02, jochen wrote: > On 2014/01/09 13:56:49, droger wrote: > > TBR=jochen > ...
6 years, 11 months ago (2014-01-09 13:59:03 UTC) #14
jochen (gone - plz use gerrit)
lgtm
6 years, 11 months ago (2014-01-09 14:02:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/131203002/420001
6 years, 11 months ago (2014-01-09 14:55:21 UTC) #16
commit-bot: I haz the power
Change committed as 243946
6 years, 11 months ago (2014-01-09 19:05:09 UTC) #17
jam
Sorry I know this is an old cl, but I'm wondering: "LanguageUsageMetrics is moved to ...
4 years, 5 months ago (2016-06-28 17:30:11 UTC) #18
blundell
4 years, 5 months ago (2016-06-28 19:01:55 UTC) #19
Message was sent while issue was closed.
On 2016/06/28 17:30:11, jam wrote:
> Sorry I know this is an old cl, but I'm wondering:
> 
> "LanguageUsageMetrics is moved to its own component because it is used both in
> the translate component and directly in the browser."
> 
> what's wrong with making the chrome/browser code include files in
> components/translate to get this?

I had to page this back in :). IIRC, the issue wasn't a technical one but rather
that LanguageUsageMetrics seemed conceptually not part of the translate feature
(e.g., it wasn't under //chrome/browser/translate before, and its usage in
//chrome/browser doesn't seem to be related to translation persay). A different
wording could be "LanguageUsageMetrics is also componentized in order to be made
available to the translate component".

Powered by Google App Engine
This is Rietveld 408576698