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

Issue 2388303007: [Offline Pages] Adds UMA for result of attempts to immediately start background loading. (Closed)

Created:
4 years, 2 months ago by dougarnett
Modified:
4 years, 2 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, asvitkine+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Adds UMA for result of attempts to immediately start background loading. Some cases are benign - no network connection or already busy - but we want to be able to separate out cases in M55 due to running on svelte device or if prerenderer did not accept the request (eg, due to RECENTLY_VISITED check). BUG=652486 Committed: https://crrev.com/e82ebcb155fee93de819feb7a4d1f9342befe0a5 Cr-Commit-Position: refs/heads/master@{#423770}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Swapped order of two enum vals per fgorski #

Patch Set 3 : Splitting StartProcessIfConnected into two methods per petewil feedback #

Patch Set 4 : Merge #

Total comments: 8

Patch Set 5 : Addressed mpearson feedback #

Total comments: 5

Patch Set 6 : Two comment improvements #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -7 lines) Patch
M components/offline_pages/background/request_coordinator.h View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 4 1 chunk +19 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (20 generated)
dougarnett
Trying to get this in for M55 per talo@ request.
4 years, 2 months ago (2016-10-05 21:31:16 UTC) #4
fgorski
overall idea and code LGTM. I'd make a few tweaks thou... https://codereview.chromium.org/2388303007/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): ...
4 years, 2 months ago (2016-10-05 21:46:13 UTC) #5
Pete Williamson
mostly looks good, one refactoring suggestion. https://codereview.chromium.org/2388303007/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2388303007/diff/1/components/offline_pages/background/request_coordinator.cc#newcode391 components/offline_pages/background/request_coordinator.cc:391: void RequestCoordinator::StartProcessingIfConnected() { ...
4 years, 2 months ago (2016-10-05 21:51:53 UTC) #6
fgorski
On 2016/10/05 21:51:53, Pete Williamson wrote: > mostly looks good, one refactoring suggestion. > > ...
4 years, 2 months ago (2016-10-05 21:53:21 UTC) #7
dougarnett
https://codereview.chromium.org/2388303007/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2388303007/diff/1/components/offline_pages/background/request_coordinator.cc#newcode29 components/offline_pages/background/request_coordinator.cc:29: BUSY, On 2016/10/05 21:46:13, fgorski wrote: > Can you ...
4 years, 2 months ago (2016-10-05 22:28:15 UTC) #8
Pete Williamson
https://codereview.chromium.org/2388303007/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2388303007/diff/1/components/offline_pages/background/request_coordinator.cc#newcode391 components/offline_pages/background/request_coordinator.cc:391: void RequestCoordinator::StartProcessingIfConnected() { On 2016/10/05 22:28:14, dougarnett wrote: > ...
4 years, 2 months ago (2016-10-05 22:45:03 UTC) #9
dougarnett
Pete, PTAL at wrapper change https://codereview.chromium.org/2388303007/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2388303007/diff/1/components/offline_pages/background/request_coordinator.cc#newcode391 components/offline_pages/background/request_coordinator.cc:391: void RequestCoordinator::StartProcessingIfConnected() { On ...
4 years, 2 months ago (2016-10-05 23:20:37 UTC) #16
Pete Williamson
much nicer, thanks! lgtm
4 years, 2 months ago (2016-10-05 23:32:40 UTC) #17
dougarnett
Mark, do you have some cycles to give histograms review here?
4 years, 2 months ago (2016-10-06 16:45:42 UTC) #21
Mark P
https://codereview.chromium.org/2388303007/diff/60001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2388303007/diff/60001/components/offline_pages/background/request_coordinator.cc#newcode377 components/offline_pages/background/request_coordinator.cc:377: static_cast<int>(immediate_start_status), Do you need static_casts here? I've never seen ...
4 years, 2 months ago (2016-10-06 18:54:42 UTC) #22
dougarnett
https://codereview.chromium.org/2388303007/diff/60001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2388303007/diff/60001/components/offline_pages/background/request_coordinator.cc#newcode377 components/offline_pages/background/request_coordinator.cc:377: static_cast<int>(immediate_start_status), On 2016/10/06 18:54:41, Mark P wrote: > Do ...
4 years, 2 months ago (2016-10-06 23:05:00 UTC) #26
Mark P
histograms.xml lgtm modulo comments below --mark https://codereview.chromium.org/2388303007/diff/80001/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2388303007/diff/80001/components/offline_pages/background/request_coordinator.h#newcode172 components/offline_pages/background/request_coordinator.h:172: enum OfflinerImmediateStartStatus { ...
4 years, 2 months ago (2016-10-06 23:11:36 UTC) #27
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/2388303007/100001
4 years, 2 months ago (2016-10-07 00:18:50 UTC) #32
dougarnett
https://codereview.chromium.org/2388303007/diff/80001/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2388303007/diff/80001/components/offline_pages/background/request_coordinator.h#newcode172 components/offline_pages/background/request_coordinator.h:172: enum OfflinerImmediateStartStatus { On 2016/10/06 23:11:36, Mark P wrote: ...
4 years, 2 months ago (2016-10-07 00:18:56 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-07 01:17:40 UTC) #34
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/e82ebcb155fee93de819feb7a4d1f9342befe0a5 Cr-Commit-Position: refs/heads/master@{#423770}
4 years, 2 months ago (2016-10-07 01:19:05 UTC) #36
Mark P
4 years, 2 months ago (2016-10-07 04:44:06 UTC) #37
Message was sent while issue was closed.
https://codereview.chromium.org/2388303007/diff/80001/components/offline_page...
File components/offline_pages/background/request_coordinator.h (right):

https://codereview.chromium.org/2388303007/diff/80001/components/offline_page...
components/offline_pages/background/request_coordinator.h:172: enum
OfflinerImmediateStartStatus {
On 2016/10/07 00:18:56, dougarnett wrote:
> On 2016/10/06 23:11:36, Mark P wrote:
> > On 2016/10/06 23:05:00, dougarnett wrote:
> > > On 2016/10/06 18:54:41, Mark P wrote:
> > > > Please follow the advice here about enum histograms:
> > > >
> > >
> >
>
https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histo...
> > > 
> > > switched to unscoped enum with explicit values
> > 
> > Can you please add the warning at the top as well?
> 
> Done.

Next time you update this file, can you please update the warning, following the
guideline here:
https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histo...

In particular, your warning misses the information that values shouldn't be
changed or reused.  You just state that they need to stay in sync with
histograms.xml.

Powered by Google App Engine
This is Rietveld 408576698