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

Issue 291153013: Make MetricsService upload logs through an interface. (Closed)

Created:
6 years, 7 months ago by Alexei Svitkine (slow)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jar (doing other things), asvitkine+watch_chromium.org, Ilya Sherman, jar+watch_chromium.org
Visibility:
Public.

Description

Make MetricsService upload logs through an interface. This allows targets that do not wish to depend on net to use the MetricsService code. Also, moves compression code to be in the net/ directory of the metrics component. BUG=375771, 374295 R=isherman@chromium.org,blundell@chromium.org,davidben@chromium.org TBR=agl@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274074

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 10

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Total comments: 2

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : Casts for win64 compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -262 lines) Patch
M chrome/browser/metrics/chrome_metrics_service_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +25 lines, -11 lines 0 comments Download
D chrome/browser/metrics/compression_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -17 lines 0 comments Download
D chrome/browser/metrics/compression_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -92 lines 0 comments Download
M chrome/browser/metrics/compression_utils_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -48 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +9 lines, -17 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +31 lines, -74 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M components/metrics.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +20 lines, -0 lines 0 comments Download
A components/metrics/metrics_log_uploader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +44 lines, -0 lines 0 comments Download
A components/metrics/metrics_log_uploader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +21 lines, -0 lines 0 comments Download
M components/metrics/metrics_service_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +10 lines, -0 lines 0 comments Download
A components/metrics/net/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
A components/metrics/net/compression_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +17 lines, -0 lines 0 comments Download
A components/metrics/net/compression_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +96 lines, -0 lines 0 comments Download
A components/metrics/net/compression_utils_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +52 lines, -0 lines 0 comments Download
A components/metrics/net/net_metrics_log_uploader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +54 lines, -0 lines 0 comments Download
A components/metrics/net/net_metrics_log_uploader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +74 lines, -0 lines 0 comments Download
M components/metrics/test_metrics_service_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M components/metrics/test_metrics_service_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
Alexei Svitkine (slow)
Mr. Sherman and Dr. Blundell, please have a look.
6 years, 7 months ago (2014-05-23 15:25:02 UTC) #1
blundell
LGTM https://codereview.chromium.org/291153013/diff/130001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://codereview.chromium.org/291153013/diff/130001/chrome/browser/metrics/metrics_service.cc#newcode1180 chrome/browser/metrics/metrics_service.cc:1180: // Compression failed, and log discarded :-/. is ...
6 years, 7 months ago (2014-05-26 07:56:55 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/291153013/diff/130001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://codereview.chromium.org/291153013/diff/130001/chrome/browser/metrics/metrics_service.cc#newcode1180 chrome/browser/metrics/metrics_service.cc:1180: // Compression failed, and log discarded :-/. On 2014/05/26 ...
6 years, 7 months ago (2014-05-26 20:04:09 UTC) #3
blundell
https://codereview.chromium.org/291153013/diff/130001/components/metrics/metrics_service_client.h File components/metrics/metrics_service_client.h (right): https://codereview.chromium.org/291153013/diff/130001/components/metrics/metrics_service_client.h#newcode63 components/metrics/metrics_service_client.h:63: const base::Callback<void(int)> on_upload_complete) = 0; I was actually just ...
6 years, 7 months ago (2014-05-26 20:22:15 UTC) #4
Alexei Svitkine (slow)
Thanks, PTAL. I also now moved compression_utils_unittest.cc to the component as well in the latest ...
6 years, 7 months ago (2014-05-27 14:36:39 UTC) #5
blundell
Did you mean to add metrics_log_uploader.cc?
6 years, 7 months ago (2014-05-27 14:41:27 UTC) #6
Alexei Svitkine (slow)
Oops, added now. Thanks!
6 years, 7 months ago (2014-05-27 14:56:05 UTC) #7
blundell
lgtm
6 years, 7 months ago (2014-05-27 15:01:01 UTC) #8
Ilya Sherman
Apologies for not getting to this review today -- my flight got majorly delayed, and ...
6 years, 7 months ago (2014-05-28 06:36:38 UTC) #9
Ilya Sherman
https://codereview.chromium.org/291153013/diff/220001/chrome/browser/metrics/chrome_metrics_service_client.h File chrome/browser/metrics/chrome_metrics_service_client.h (right): https://codereview.chromium.org/291153013/diff/220001/chrome/browser/metrics/chrome_metrics_service_client.h#newcode44 chrome/browser/metrics/chrome_metrics_service_client.h:44: const base::Callback<void(int)> on_upload_complete) OVERRIDE; nit: Pass the callback by ...
6 years, 6 months ago (2014-05-29 03:54:48 UTC) #10
Alexei Svitkine (slow)
+davidben from net/OWNERS to review components/metrics/net/DEPS, per presubmit https://codereview.chromium.org/291153013/diff/220001/chrome/browser/metrics/chrome_metrics_service_client.h File chrome/browser/metrics/chrome_metrics_service_client.h (right): https://codereview.chromium.org/291153013/diff/220001/chrome/browser/metrics/chrome_metrics_service_client.h#newcode44 chrome/browser/metrics/chrome_metrics_service_client.h:44: const ...
6 years, 6 months ago (2014-05-29 14:32:48 UTC) #11
Ilya Sherman
LGTM, thanks. Hmm, did you (perhaps accidentally?) delete the patch set that I commented on? ...
6 years, 6 months ago (2014-05-29 20:29:47 UTC) #12
Alexei Svitkine (slow)
On 2014/05/29 20:29:47, Ilya Sherman wrote: > LGTM, thanks. > > Hmm, did you (perhaps ...
6 years, 6 months ago (2014-05-29 20:33:08 UTC) #13
davidben
components/metrics/net/DEPS LGTM. I didn't do more than briefly skim the rest of it.
6 years, 6 months ago (2014-05-29 20:38:02 UTC) #14
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 6 months ago (2014-05-29 20:38:44 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/291153013/260001
6 years, 6 months ago (2014-05-29 20:43:43 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-05-29 21:12:44 UTC) #17
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 6 months ago (2014-05-29 21:17:32 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/8674) chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/70483) linux_chromium_chromeos_rel ...
6 years, 6 months ago (2014-05-29 21:21:06 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/291153013/260002
6 years, 6 months ago (2014-05-29 21:21:49 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-05-29 22:26:35 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-29 22:37:43 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/8716) chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/70516) linux_chromium_chromeos_rel ...
6 years, 6 months ago (2014-05-29 22:37:44 UTC) #23
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 6 months ago (2014-05-30 14:32:24 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/291153013/280001
6 years, 6 months ago (2014-05-30 14:33:25 UTC) #25
Alexei Svitkine (slow)
The CQ bit was unchecked by asvitkine@chromium.org
6 years, 6 months ago (2014-05-30 17:02:09 UTC) #26
Alexei Svitkine (slow)
Oops, forgot to list "+third_party/zlib" in components/metrics/net/DEPS for compression_utils.cc. +agl from third_party/zlib/OWNERS for including it ...
6 years, 6 months ago (2014-05-30 17:12:43 UTC) #27
Alexei Svitkine (slow)
agl@ is OOO, so TBRing
6 years, 6 months ago (2014-05-30 17:17:53 UTC) #28
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 6 months ago (2014-05-30 17:18:07 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/291153013/300001
6 years, 6 months ago (2014-05-30 17:20:08 UTC) #30
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 6 months ago (2014-05-30 17:34:19 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/291153013/320001
6 years, 6 months ago (2014-05-30 17:38:04 UTC) #32
Alexei Svitkine (slow)
Hmm, looks like it's still hitting presubmit errors on the bot: ** Presubmit ERRORS ** ...
6 years, 6 months ago (2014-05-30 18:56:33 UTC) #33
blundell
https://codereview.chromium.org/291153013/diff/320001/components/metrics/net/DEPS File components/metrics/net/DEPS (right): https://codereview.chromium.org/291153013/diff/320001/components/metrics/net/DEPS#newcode2 components/metrics/net/DEPS:2: "+net" I believe you need commas at the end ...
6 years, 6 months ago (2014-05-30 19:44:25 UTC) #34
Alexei Svitkine (slow)
https://codereview.chromium.org/291153013/diff/320001/components/metrics/net/DEPS File components/metrics/net/DEPS (right): https://codereview.chromium.org/291153013/diff/320001/components/metrics/net/DEPS#newcode2 components/metrics/net/DEPS:2: "+net" On 2014/05/30 19:44:26, blundell wrote: > I believe ...
6 years, 6 months ago (2014-05-30 19:51:26 UTC) #35
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 6 months ago (2014-05-30 19:51:36 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/291153013/340001
6 years, 6 months ago (2014-05-30 19:55:46 UTC) #37
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 6 months ago (2014-05-30 20:52:39 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/291153013/360001
6 years, 6 months ago (2014-05-30 20:55:34 UTC) #39
Alexei Svitkine (slow)
On 2014/05/30 20:55:34, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 6 months ago (2014-05-31 01:06:52 UTC) #40
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-05-31 03:40:28 UTC) #41
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-31 05:07:16 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/15678)
6 years, 6 months ago (2014-05-31 05:07:17 UTC) #43
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 6 months ago (2014-05-31 13:58:45 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/291153013/380001
6 years, 6 months ago (2014-05-31 13:58:58 UTC) #45
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-05-31 15:38:23 UTC) #46
commit-bot: I haz the power
6 years, 6 months ago (2014-05-31 22:28:40 UTC) #47
Message was sent while issue was closed.
Change committed as 274074

Powered by Google App Engine
This is Rietveld 408576698