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

Issue 2608833002: Move logic for uploading logs into a ReportingService object. (Closed)

Created:
3 years, 11 months ago by Steven Holte
Modified:
3 years, 9 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move logic for uploading logs into a ReportingService object. Gathers the logic related to handling serialized logs for upload into a ReportingService object which is specialized for UMA with a MetricsReportingService subclass. No functional changes intended. BUG=693676 Review-Url: https://codereview.chromium.org/2608833002 Cr-Commit-Position: refs/heads/master@{#456571} Committed: https://chromium.googlesource.com/chromium/src/+/a3b241168ae7b85d5cc31e6b2f4afc8cd1cbe869

Patch Set 1 #

Patch Set 2 : Rebase and cleanup #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : UploadInterval histogram #

Patch Set 7 : Shorten #

Patch Set 8 : Fix some typos and rename functions #

Patch Set 9 : Fix iOS/Android typo #

Total comments: 16

Patch Set 10 : Incorporate feedback #

Total comments: 14

Patch Set 11 : Incorporate feedback #

Total comments: 6

Patch Set 12 : Rebase and nits #

Patch Set 13 : Rebase #

Patch Set 14 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+557 lines, -218 lines) Patch
M components/metrics/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
A components/metrics/metrics_reporting_service.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +65 lines, -0 lines 0 comments Download
A components/metrics/metrics_reporting_service.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +108 lines, -0 lines 0 comments Download
M components/metrics/metrics_service.h View 1 2 3 4 5 6 7 8 9 10 12 chunks +9 lines, -31 lines 0 comments Download
M components/metrics/metrics_service.cc View 1 2 3 4 5 6 7 8 18 chunks +26 lines, -160 lines 0 comments Download
M components/metrics/metrics_service_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M components/metrics/metrics_upload_scheduler.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -11 lines 0 comments Download
M components/metrics/metrics_upload_scheduler.cc View 1 2 3 4 5 1 chunk +0 lines, -14 lines 0 comments Download
A components/metrics/reporting_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +146 lines, -0 lines 0 comments Download
A components/metrics/reporting_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +197 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
Steven Holte
3 years, 10 months ago (2017-02-24 22:49:40 UTC) #5
Alexei Svitkine (slow)
I am worried this is adding a lot of complexity - via all the relationships ...
3 years, 9 months ago (2017-02-28 18:03:45 UTC) #14
Steven Holte
Now with actual class comments! https://codereview.chromium.org/2608833002/diff/160001/components/metrics/metrics_service.cc File components/metrics/metrics_service.cc (right): https://codereview.chromium.org/2608833002/diff/160001/components/metrics/metrics_service.cc#newcode365 components/metrics/metrics_service.cc:365: return reporting_service_.metrics_log_store()->has_unsent_logs(); On 2017/02/28 ...
3 years, 9 months ago (2017-03-01 02:02:34 UTC) #15
Alexei Svitkine (slow)
https://codereview.chromium.org/2608833002/diff/160001/components/metrics/reporting_service.h File components/metrics/reporting_service.h (right): https://codereview.chromium.org/2608833002/diff/160001/components/metrics/reporting_service.h#newcode81 components/metrics/reporting_service.h:81: virtual std::string upload_url() = 0; On 2017/03/01 02:02:33, Steven ...
3 years, 9 months ago (2017-03-01 16:06:30 UTC) #16
Steven Holte
https://codereview.chromium.org/2608833002/diff/160001/components/metrics/reporting_service.h File components/metrics/reporting_service.h (right): https://codereview.chromium.org/2608833002/diff/160001/components/metrics/reporting_service.h#newcode81 components/metrics/reporting_service.h:81: virtual std::string upload_url() = 0; On 2017/03/01 16:06:29, Alexei ...
3 years, 9 months ago (2017-03-04 01:35:51 UTC) #17
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2608833002/diff/200001/components/metrics/metrics_reporting_service.cc File components/metrics/metrics_reporting_service.cc (right): https://codereview.chromium.org/2608833002/diff/200001/components/metrics/metrics_reporting_service.cc#newcode72 components/metrics/metrics_reporting_service.cc:72: return metrics::kDefaultMetricsMimeType; Nit: No metrics:: https://codereview.chromium.org/2608833002/diff/200001/components/metrics/metrics_reporting_service.cc#newcode77 components/metrics/metrics_reporting_service.cc:77: return ...
3 years, 9 months ago (2017-03-06 22:15:22 UTC) #18
Steven Holte
https://codereview.chromium.org/2608833002/diff/200001/components/metrics/metrics_reporting_service.cc File components/metrics/metrics_reporting_service.cc (right): https://codereview.chromium.org/2608833002/diff/200001/components/metrics/metrics_reporting_service.cc#newcode72 components/metrics/metrics_reporting_service.cc:72: return metrics::kDefaultMetricsMimeType; On 2017/03/06 22:15:21, Alexei Svitkine (very slow) ...
3 years, 9 months ago (2017-03-06 22:31:40 UTC) #19
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/2608833002/260001
3 years, 9 months ago (2017-03-14 00:50:51 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 02:09:15 UTC) #29
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/a3b241168ae7b85d5cc31e6b2f4a...

Powered by Google App Engine
This is Rietveld 408576698