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

Issue 2091353002: Generalize the reload PLMO to support other transition types. (Closed)

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

Description

Generalize the reload PLMO to support other transition types. This change moves tracking of reloads, forward/back navigations and new navigations into the core PLMO. It's not unlikely that other observers may want to track load metrics broken down by load types, so we annotate load types using suffixes, rather than PageLoad.Clients.LoadType-style naming, which would not generalize to other observers. BUG=607063 Committed: https://crrev.com/861b3c8268b5aecbe17436c737f70be7e8b19832 Cr-Commit-Position: refs/heads/master@{#402579}

Patch Set 1 #

Patch Set 2 : remove optional #

Patch Set 3 : add additional transition types #

Patch Set 4 : initialize transition_ member #

Patch Set 5 : reorder histograms #

Patch Set 6 : factor transition type logic into a helper #

Patch Set 7 : git cl format #

Patch Set 8 : fix formatting #

Patch Set 9 : fix naming to be consistent with abort timing #

Patch Set 10 : handle transition type none case #

Patch Set 11 : add test #

Patch Set 12 : add test #

Patch Set 13 : add histogram.xml entries #

Patch Set 14 : fix histograms.xml #

Patch Set 15 : add abort unit tests #

Total comments: 1

Patch Set 16 : test forward/back before reload. #

Patch Set 17 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -98 lines) Patch
M chrome/browser/page_load_metrics/observers/aborts_page_load_metrics_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +34 lines, -2 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +72 lines, -1 line 0 comments Download
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +14 lines, -0 lines 0 comments Download
D chrome/browser/page_load_metrics/observers/reload_page_load_metrics_observer.h View 1 chunk +0 lines, -37 lines 0 comments Download
D chrome/browser/page_load_metrics/observers/reload_page_load_metrics_observer.cc View 1 chunk +0 lines, -50 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_initialize.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +0 lines, -2 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 1 chunk +0 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +24 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
Takashi Toyoshima
lgtm. One note from my local test just in case: This problem seems to exist ...
4 years, 5 months ago (2016-06-27 10:46:14 UTC) #4
Bryan McQuade
Thanks! https://codereview.chromium.org/2091353002/diff/280001/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc File chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc (right): https://codereview.chromium.org/2091353002/diff/280001/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc#newcode55 chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc:55: if (transition & ui::PAGE_TRANSITION_FORWARD_BACK) { regarding your comment ...
4 years, 5 months ago (2016-06-27 11:46:44 UTC) #5
Bryan McQuade
On 2016/06/27 at 11:46:44, Bryan McQuade wrote: > Thanks! > > https://codereview.chromium.org/2091353002/diff/280001/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc > File chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc ...
4 years, 5 months ago (2016-06-27 20:40:15 UTC) #6
Bryan McQuade
jochen, PTAL for chrome_browser.gypi isherman, PTAL for histograms.xml
4 years, 5 months ago (2016-06-27 20:41:30 UTC) #8
Ilya Sherman
histograms.xml lgtm
4 years, 5 months ago (2016-06-28 03:14:08 UTC) #9
Takashi Toyoshima
The workaround looks nicely reasonable. Still LGTM.
4 years, 5 months ago (2016-06-28 06:46:51 UTC) #10
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-06-28 13:13:29 UTC) #11
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/2091353002/300001
4 years, 5 months ago (2016-06-28 14:18:12 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/253794)
4 years, 5 months ago (2016-06-28 17:07:07 UTC) #15
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/2091353002/320001
4 years, 5 months ago (2016-06-28 22:28:01 UTC) #18
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 5 months ago (2016-06-28 22:44:11 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 22:47:14 UTC) #21
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/861b3c8268b5aecbe17436c737f70be7e8b19832
Cr-Commit-Position: refs/heads/master@{#402579}

Powered by Google App Engine
This is Rietveld 408576698