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

Issue 2175743002: Add MetricsProvider::OnAppEnterBackground callback. (Closed)

Created:
4 years, 5 months ago by Bryan McQuade
Modified:
4 years, 4 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add MetricsProvider::OnAppEnterBackground callback. This allows MetricsProviders to log any histograms for data that's buffered. For example, The page load metrics subsystem buffers some metrics data until the end of the page load. These metrics should also be logged when the app enters the background, in order to avoid data loss. https://codereview.chromium.org/2189543002 is a follow up change that makes use of this new callback when tracking page load metrics. See https://groups.google.com/a/google.com/d/topic/uma-users/BcJRPxNlJ4E/discussion for additional context on this change. BUG=608360 Committed: https://crrev.com/6a49bedce62c4dff0031bd3cfc135440dc219903 Cr-Commit-Position: refs/heads/master@{#408212}

Patch Set 1 #

Patch Set 2 : fix comment #

Patch Set 3 : fix comment #

Total comments: 5

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M components/metrics/metrics_provider.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M components/metrics/metrics_provider.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/metrics/metrics_service.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (22 generated)
Bryan McQuade
PTAL. See https://groups.google.com/a/google.com/d/msg/uma-users/BcJRPxNlJ4E/ovdTxK-pBwAJ for some discussion we had about this a few months ago. Thanks! ...
4 years, 4 months ago (2016-07-27 13:18:35 UTC) #16
Alexei Svitkine (slow)
lgtm % comments https://codereview.chromium.org/2175743002/diff/40001/components/metrics/metrics_provider.h File components/metrics/metrics_provider.h (right): https://codereview.chromium.org/2175743002/diff/40001/components/metrics/metrics_provider.h#newcode43 components/metrics/metrics_provider.h:43: // application may be killed without ...
4 years, 4 months ago (2016-07-27 17:41:12 UTC) #17
Bryan McQuade
Thanks! Addressed comments. https://codereview.chromium.org/2175743002/diff/40001/components/metrics/metrics_provider.h File components/metrics/metrics_provider.h (right): https://codereview.chromium.org/2175743002/diff/40001/components/metrics/metrics_provider.h#newcode43 components/metrics/metrics_provider.h:43: // application may be killed without ...
4 years, 4 months ago (2016-07-27 18:25:15 UTC) #20
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/2175743002/60001
4 years, 4 months ago (2016-07-27 19:22:23 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-07-27 19:26:13 UTC) #26
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 19:27:22 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6a49bedce62c4dff0031bd3cfc135440dc219903
Cr-Commit-Position: refs/heads/master@{#408212}

Powered by Google App Engine
This is Rietveld 408576698