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

Issue 2689323010: Split a MetricsLogStore object out of MetricsLogManager. (Closed)

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

Description

Split a MetricsLogStore object out of MetricsLogManager. The MetricsLogStore handles all serialized logs, while MetricsLogManager handles logs which are still being produced. Creates a LogStore interface for MetricsLogStore and PersistedLogs to implement. This will simplify creating a ReportingService that can be reused by both UKM and UMA. No functional changes intended. BUG=693676 Review-Url: https://codereview.chromium.org/2689323010 Cr-Commit-Position: refs/heads/master@{#452356} Committed: https://chromium.googlesource.com/chromium/src/+/ade6fdf493bec82b248ad76bc1d378f5d3ea99e4

Patch Set 1 #

Patch Set 2 : Ukm Updates #

Total comments: 16

Patch Set 3 : Incorporate Feedback #

Total comments: 16

Patch Set 4 : More feedback #

Total comments: 8

Patch Set 5 : More feedback #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+603 lines, -620 lines) Patch
M components/metrics/BUILD.gn View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
A components/metrics/log_store.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M components/metrics/metrics_log_manager.h View 1 2 3 3 chunks +7 lines, -60 lines 0 comments Download
M components/metrics/metrics_log_manager.cc View 3 chunks +4 lines, -88 lines 0 comments Download
M components/metrics/metrics_log_manager_unittest.cc View 1 2 3 chunks +50 lines, -233 lines 0 comments Download
A components/metrics/metrics_log_store.h View 1 2 3 4 1 chunk +67 lines, -0 lines 0 comments Download
A + components/metrics/metrics_log_store.cc View 1 2 3 4 3 chunks +57 lines, -64 lines 0 comments Download
A components/metrics/metrics_log_store_unittest.cc View 1 2 1 chunk +194 lines, -0 lines 0 comments Download
M components/metrics/metrics_service.h View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M components/metrics/metrics_service.cc View 1 2 3 4 5 14 chunks +25 lines, -27 lines 0 comments Download
M components/metrics/metrics_service_unittest.cc View 1 2 3 4 5 9 chunks +20 lines, -19 lines 0 comments Download
M components/metrics/persisted_logs.h View 4 3 chunks +13 lines, -54 lines 0 comments Download
M components/metrics/persisted_logs.cc View 5 chunks +46 lines, -17 lines 0 comments Download
M components/metrics/persisted_logs_metrics.h View 1 chunk +19 lines, -2 lines 0 comments Download
M components/metrics/persisted_logs_metrics_impl.h View 1 chunk +2 lines, -5 lines 0 comments Download
M components/metrics/persisted_logs_metrics_impl.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M components/metrics/persisted_logs_unittest.cc View 11 chunks +22 lines, -28 lines 0 comments Download
M components/ukm/persisted_logs_metrics_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/ukm/persisted_logs_metrics_impl.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M components/ukm/ukm_service.cc View 1 2 3 4 5 chunks +8 lines, -8 lines 0 comments Download
M components/ukm/ukm_service_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (21 generated)
Steven Holte
3 years, 10 months ago (2017-02-17 03:07:19 UTC) #8
rkaplow
may want brian or alexei to take a look as well https://codereview.chromium.org/2689323010/diff/20001/components/metrics/log_store.h File components/metrics/log_store.h (right): ...
3 years, 10 months ago (2017-02-20 21:24:14 UTC) #13
Steven Holte
https://codereview.chromium.org/2689323010/diff/20001/components/metrics/log_store.h File components/metrics/log_store.h (right): https://codereview.chromium.org/2689323010/diff/20001/components/metrics/log_store.h#newcode12 components/metrics/log_store.h:12: // Interface for local storage of logs to be ...
3 years, 10 months ago (2017-02-21 21:51:19 UTC) #14
Steven Holte
+Brian
3 years, 10 months ago (2017-02-21 21:53:48 UTC) #16
bcwhite
https://codereview.chromium.org/2689323010/diff/40001/components/metrics/log_store.h File components/metrics/log_store.h (right): https://codereview.chromium.org/2689323010/diff/40001/components/metrics/log_store.h#newcode18 components/metrics/log_store.h:18: virtual bool has_unsent_logs() const = 0; Is "hacker style" ...
3 years, 10 months ago (2017-02-22 16:25:09 UTC) #17
Steven Holte
https://codereview.chromium.org/2689323010/diff/40001/components/metrics/log_store.h File components/metrics/log_store.h (right): https://codereview.chromium.org/2689323010/diff/40001/components/metrics/log_store.h#newcode18 components/metrics/log_store.h:18: virtual bool has_unsent_logs() const = 0; On 2017/02/22 16:25:08, ...
3 years, 10 months ago (2017-02-22 20:35:50 UTC) #18
bcwhite
lgtm
3 years, 10 months ago (2017-02-22 20:39:24 UTC) #19
Alexei Svitkine (slow)
drive-by lgtm with nits https://codereview.chromium.org/2689323010/diff/40001/components/metrics/log_store.h File components/metrics/log_store.h (right): https://codereview.chromium.org/2689323010/diff/40001/components/metrics/log_store.h#newcode18 components/metrics/log_store.h:18: virtual bool has_unsent_logs() const = ...
3 years, 10 months ago (2017-02-22 20:43:47 UTC) #21
rkaplow
lgtm
3 years, 10 months ago (2017-02-22 20:43:54 UTC) #22
Steven Holte
https://codereview.chromium.org/2689323010/diff/40001/components/metrics/log_store.h File components/metrics/log_store.h (right): https://codereview.chromium.org/2689323010/diff/40001/components/metrics/log_store.h#newcode18 components/metrics/log_store.h:18: virtual bool has_unsent_logs() const = 0; On 2017/02/22 20:43:46, ...
3 years, 10 months ago (2017-02-22 22:15:54 UTC) #23
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/2689323010/100001
3 years, 10 months ago (2017-02-23 01:06:02 UTC) #30
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 02:43:31 UTC) #33
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/ade6fdf493bec82b248ad76bc1d3...

Powered by Google App Engine
This is Rietveld 408576698