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

Issue 239093004: Move part of metrics from chrome/common to components (Closed)

Created:
6 years, 8 months ago by bsimonnet
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, extensions-reviews_chromium.org, jar (doing other things), tfarina, asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, James Su, lcwu1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move part of metrics from chrome/common to components Chrome OS needs to have access to the metrics aggretion and serialization logic to build a metric sender service replacing chrome. Protobuf definitions are moved to components too. The code remaining will be extrated in components/metrics and components/variation during a refactoring later this year. BUG=chromium:360183 TEST=run unittests TBR=sky@chromium.org, benwells@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267709

Patch Set 1 #

Patch Set 2 : Rebasing to run trybots. #

Patch Set 3 : Fix unittest that broke after rebase. #

Total comments: 11

Patch Set 4 : Fixing nits, reverting linting, creating new build target for protobufs #

Patch Set 5 : Change proto target name to avoid collision #

Patch Set 6 : Adding a DEPS file to //components/metrics #

Total comments: 4

Patch Set 7 : Alphabetizing DEPS #

Total comments: 5

Patch Set 8 : Rebasing before CQ #

Patch Set 9 : Renaming test. Adding explicit dependency on protobuffers. #

Total comments: 2

Patch Set 10 : Adding an explicit dependency on the metrics' protobufs #

Patch Set 11 : Rebasing hoping to pass chromeos_asan. #

Patch Set 12 : Adding README explaining the constraints on this component. #

Patch Set 13 : Adding TBR section for owners of minor changes. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -2647 lines) Patch
M chrome/browser/autocomplete/autocomplete_provider.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/feedback/feedback_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/extension_metrics.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/extension_metrics_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/metrics_log.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 3 4 chunks +26 lines, -3 lines 0 comments Download
M chrome/browser/metrics/metrics_log_chromeos.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/metrics_log_serializer.h View 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/metrics/metrics_log_serializer.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_log_serializer_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_log_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_network_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/metrics/metrics_service_unittest.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/metrics/perf_provider_chromeos.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/search/omnibox_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -2 lines 0 comments Download
D chrome/common/metrics/metrics_log_base.h View 1 1 chunk +0 lines, -109 lines 0 comments Download
D chrome/common/metrics/metrics_log_base.cc View 1 1 chunk +0 lines, -162 lines 0 comments Download
D chrome/common/metrics/metrics_log_base_unittest.cc View 1 1 chunk +0 lines, -123 lines 0 comments Download
D chrome/common/metrics/metrics_log_manager.h View 1 1 chunk +0 lines, -212 lines 0 comments Download
D chrome/common/metrics/metrics_log_manager.cc View 1 1 chunk +0 lines, -203 lines 0 comments Download
D chrome/common/metrics/metrics_log_manager_unittest.cc View 1 1 chunk +0 lines, -423 lines 0 comments Download
M chrome/common/metrics/metrics_service_base.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/metrics/metrics_service_base.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/common/metrics/proto/chrome_user_metrics_extension.proto View 1 chunk +0 lines, -58 lines 0 comments Download
D chrome/common/metrics/proto/histogram_event.proto View 1 chunk +0 lines, -45 lines 0 comments Download
D chrome/common/metrics/proto/omnibox_event.proto View 1 chunk +0 lines, -244 lines 0 comments Download
D chrome/common/metrics/proto/perf_data.proto View 1 chunk +0 lines, -356 lines 0 comments Download
D chrome/common/metrics/proto/profiler_event.proto View 1 chunk +0 lines, -92 lines 0 comments Download
D chrome/common/metrics/proto/system_profile.proto View 1 chunk +0 lines, -509 lines 0 comments Download
D chrome/common/metrics/proto/user_action_event.proto View 1 chunk +0 lines, -21 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M components/metrics.gypi View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A components/metrics/DEPS View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
A components/metrics/README View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +22 lines, -0 lines 1 comment Download
A + components/metrics/metrics_log_base.h View 1 2 3 2 chunks +8 lines, -7 lines 0 comments Download
A + components/metrics/metrics_log_base.cc View 1 2 3 6 chunks +8 lines, -28 lines 0 comments Download
A + components/metrics/metrics_log_base_unittest.cc View 1 4 chunks +9 lines, -7 lines 0 comments Download
A + components/metrics/metrics_log_manager.h View 1 2 3 3 chunks +9 lines, -8 lines 0 comments Download
A + components/metrics/metrics_log_manager.cc View 1 2 3 4 chunks +9 lines, -4 lines 0 comments Download
A + components/metrics/metrics_log_manager_unittest.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
A + components/metrics/proto/chrome_user_metrics_extension.proto View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/metrics/proto/histogram_event.proto View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/metrics/proto/omnibox_event.proto View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/metrics/proto/perf_data.proto View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/metrics/proto/profiler_event.proto View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/metrics/proto/system_profile.proto View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/metrics/proto/user_action_event.proto View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 53 (0 generated)
bsimonnet
Here is the change that moves part of //chrome/common/metrics in //components/metrics. I'm trying to figure ...
6 years, 8 months ago (2014-04-15 21:23:22 UTC) #1
Ilya Sherman
Which parts of this CL are manual vs. automated? I'm surprised not to see a ...
6 years, 8 months ago (2014-04-15 23:00:40 UTC) #2
Ilya Sherman
Btw, I'm seeing the same compile failures on the linux_chromeos_asan bot for an unrelated CL, ...
6 years, 8 months ago (2014-04-15 23:41:03 UTC) #3
bsimonnet
On 2014/04/15 23:00:40, Ilya Sherman wrote: > Which parts of this CL are manual vs. ...
6 years, 8 months ago (2014-04-16 00:06:44 UTC) #4
Alexei Svitkine (slow)
I think we want to eventually merge MetricsLogBase and MetricsLog. So I'm not sure that ...
6 years, 8 months ago (2014-04-16 15:19:32 UTC) #5
bsimonnet
On 2014/04/16 15:19:32, Alexei Svitkine wrote: > I think we want to eventually merge MetricsLogBase ...
6 years, 8 months ago (2014-04-16 16:39:59 UTC) #6
Alexei Svitkine (slow)
Fair enough. I'm okay with this if it's a useful stepping stone towards the end ...
6 years, 8 months ago (2014-04-16 17:01:00 UTC) #7
bsimonnet
I am rerunning trybots on android_dbg and win_rel, the fail seem to be unrelaed. chromeos_asan ...
6 years, 8 months ago (2014-04-18 18:55:52 UTC) #8
Ilya Sherman
Sorry for the delay, I'd missed your reply. On 2014/04/16 00:06:44, bsimonnet wrote: > There ...
6 years, 8 months ago (2014-04-18 19:03:06 UTC) #9
Ilya Sherman
On 2014/04/18 19:03:06, Ilya Sherman wrote: > Sorry for the delay, I'd missed your reply. ...
6 years, 8 months ago (2014-04-18 19:07:09 UTC) #10
bsimonnet
6 years, 8 months ago (2014-04-19 00:34:40 UTC) #11
Ilya Sherman
LGTM with a final nit. For future reference, please do respond "Done." for comments that ...
6 years, 8 months ago (2014-04-19 03:44:51 UTC) #12
Ilya Sherman
https://chromiumcodereview.appspot.com/239093004/diff/90001/components/metrics/DEPS File components/metrics/DEPS (right): https://chromiumcodereview.appspot.com/239093004/diff/90001/components/metrics/DEPS#newcode2 components/metrics/DEPS:2: "-chrome", nit: No need to add this either, actually. ...
6 years, 8 months ago (2014-04-19 07:02:48 UTC) #13
bsimonnet
Perfect, Thanks for the great feedback! https://codereview.chromium.org/239093004/diff/90001/components/metrics/DEPS File components/metrics/DEPS (right): https://codereview.chromium.org/239093004/diff/90001/components/metrics/DEPS#newcode2 components/metrics/DEPS:2: "-chrome", On 2014/04/19 ...
6 years, 8 months ago (2014-04-21 15:17:05 UTC) #14
bsimonnet
The CQ bit was checked by bsimonnet@chromium.org
6 years, 8 months ago (2014-04-21 15:17:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bsimonnet@chromium.org/239093004/110001
6 years, 8 months ago (2014-04-21 15:17:31 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-21 15:17:52 UTC) #17
commit-bot: I haz the power
Failed to apply patch for chrome/chrome_browser.gypi: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-21 15:17:52 UTC) #18
bsimonnet
The CQ bit was checked by bsimonnet@chromium.org
6 years, 8 months ago (2014-04-22 15:26:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bsimonnet@chromium.org/239093004/130001
6 years, 8 months ago (2014-04-22 15:27:00 UTC) #20
Alexei Svitkine (slow)
https://codereview.chromium.org/239093004/diff/110001/chrome/browser/metrics/metrics_log_unittest.cc File chrome/browser/metrics/metrics_log_unittest.cc (right): https://codereview.chromium.org/239093004/diff/110001/chrome/browser/metrics/metrics_log_unittest.cc#newcode654 chrome/browser/metrics/metrics_log_unittest.cc:654: TEST_F(MetricsLogTest, ChromeVersionWritten) { The name of this test should ...
6 years, 8 months ago (2014-04-22 15:28:09 UTC) #21
bsimonnet
The CQ bit was unchecked by bsimonnet@chromium.org
6 years, 8 months ago (2014-04-22 15:31:30 UTC) #22
bsimonnet
https://codereview.chromium.org/239093004/diff/110001/chrome/browser/metrics/metrics_log_unittest.cc File chrome/browser/metrics/metrics_log_unittest.cc (right): https://codereview.chromium.org/239093004/diff/110001/chrome/browser/metrics/metrics_log_unittest.cc#newcode654 chrome/browser/metrics/metrics_log_unittest.cc:654: TEST_F(MetricsLogTest, ChromeVersionWritten) { On 2014/04/22 15:28:10, Alexei Svitkine wrote: ...
6 years, 8 months ago (2014-04-22 16:52:42 UTC) #23
Alexei Svitkine (slow)
LGTM https://codereview.chromium.org/239093004/diff/110001/components/metrics.gypi File components/metrics.gypi (right): https://codereview.chromium.org/239093004/diff/110001/components/metrics.gypi#newcode28 components/metrics.gypi:28: 'target_name': 'component_metrics_proto', On 2014/04/22 16:52:43, bsimonnet wrote: > ...
6 years, 8 months ago (2014-04-22 20:51:16 UTC) #24
bsimonnet
https://codereview.chromium.org/239093004/diff/140001/chrome/chrome_common.gypi File chrome/chrome_common.gypi (left): https://codereview.chromium.org/239093004/diff/140001/chrome/chrome_common.gypi#oldcode44 chrome/chrome_common.gypi:44: '<(DEPTH)/components/components.gyp:variations', Everything was extracted, chrome/common/metrics dont need any proto ...
6 years, 8 months ago (2014-04-23 00:08:00 UTC) #25
bsimonnet
On 2014/04/23 00:08:00, bsimonnet wrote: > https://codereview.chromium.org/239093004/diff/140001/chrome/chrome_common.gypi > File chrome/chrome_common.gypi (left): > > https://codereview.chromium.org/239093004/diff/140001/chrome/chrome_common.gypi#oldcode44 > ...
6 years, 8 months ago (2014-04-24 14:55:33 UTC) #26
bsimonnet
The CQ bit was checked by bsimonnet@chromium.org
6 years, 8 months ago (2014-04-24 14:55:43 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bsimonnet@chromium.org/239093004/180001
6 years, 8 months ago (2014-04-24 14:56:00 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 15:02:34 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-24 15:02:35 UTC) #30
bsimonnet
6 years, 8 months ago (2014-04-24 15:32:54 UTC) #31
rkc
lgtm
6 years, 8 months ago (2014-04-24 19:11:12 UTC) #32
blundell
not LGTM pending resolution of the below question Wasn't there an issue with dependencies, wherein ...
6 years, 7 months ago (2014-04-28 07:54:36 UTC) #33
blundell
Ok, my understanding from offline discussion is the following: - Everything that you're putting in ...
6 years, 7 months ago (2014-04-30 14:53:58 UTC) #34
bsimonnet
On 2014/04/30 14:53:58, blundell wrote: > Ok, my understanding from offline discussion is the following: ...
6 years, 7 months ago (2014-04-30 15:47:41 UTC) #35
blundell
Could you add a README explaining the current structure of this component and detailing what ...
6 years, 7 months ago (2014-04-30 15:51:16 UTC) #36
blundell
Other than that, rubberstamp LGTM from me.
6 years, 7 months ago (2014-04-30 15:51:58 UTC) #37
bsimonnet
sky, benwells, can you sign on it too?
6 years, 7 months ago (2014-04-30 23:21:36 UTC) #38
benwells
lgtm. BTW TBR is fine for this kind of refactoring fallout, where someone has reviewed ...
6 years, 7 months ago (2014-05-01 00:58:14 UTC) #39
sky
What do you need me to review here?
6 years, 7 months ago (2014-05-01 03:23:23 UTC) #40
sky
Also, if it's just a bunch of include changes you need me to review, feel ...
6 years, 7 months ago (2014-05-01 03:23:43 UTC) #41
bsimonnet
On 2014/05/01 03:23:43, sky wrote: > Also, if it's just a bunch of include changes ...
6 years, 7 months ago (2014-05-01 16:13:44 UTC) #42
bsimonnet
On 2014/05/01 16:13:44, bsimonnet wrote: > On 2014/05/01 03:23:43, sky wrote: > > Also, if ...
6 years, 7 months ago (2014-05-01 22:13:54 UTC) #43
bsimonnet
The CQ bit was checked by bsimonnet@chromium.org
6 years, 7 months ago (2014-05-01 22:14:40 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bsimonnet@chromium.org/239093004/220001
6 years, 7 months ago (2014-05-01 22:15:18 UTC) #45
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 22:19:19 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-05-01 22:19:19 UTC) #47
bsimonnet
The CQ bit was checked by bsimonnet@chromium.org
6 years, 7 months ago (2014-05-01 22:24:45 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bsimonnet@chromium.org/239093004/220001
6 years, 7 months ago (2014-05-01 22:26:07 UTC) #49
Ilya Sherman
You'll want to TBR someone for the chrome/browser/autocomplete/autocomplete_provider.h change as well -- I think that's ...
6 years, 7 months ago (2014-05-01 22:28:26 UTC) #50
bsimonnet
On 2014/05/01 22:28:26, Ilya Sherman wrote: > You'll want to TBR someone for the > ...
6 years, 7 months ago (2014-05-01 22:31:22 UTC) #51
commit-bot: I haz the power
Change committed as 267709
6 years, 7 months ago (2014-05-02 00:59:11 UTC) #52
blundell
6 years, 7 months ago (2014-05-05 08:16:50 UTC) #53
Message was sent while issue was closed.
https://codereview.chromium.org/239093004/diff/220001/components/metrics/README
File components/metrics/README (right):

https://codereview.chromium.org/239093004/diff/220001/components/metrics/READ...
components/metrics/README:21: It is a plus if the component stays in a single
directory as it would be easier
nit: To avoid confusion, I would say "if the code currently in the component
(i.e., the code that can depend only on //base)" instead of "if the component".

Powered by Google App Engine
This is Rietveld 408576698