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

Issue 2380773002: Prevent tracking metrics for cases such as 204s and downloads. (Closed)

Created:
4 years, 2 months ago by Bryan McQuade
Modified:
4 years, 2 months ago
Reviewers:
clamy, Charlie Harrison
CC:
chromium-reviews, creis+watch_chromium.org, csharrison+watch_chromium.org, darin-cc_chromium.org, jam, loading-reviews+metrics_chromium.org, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent tracking metrics for cases such as 204s and downloads. More generally, ignore tracking metrics for navigations that result in receiving a successful HTTP response but that don't commit. The PageLoad UMA implementation currently tracks 204s and downloads as aborts, as their net error status reported on NavigationHandle is ERR_ABORTED. In reality these are just loads that terminated without committing, so they should instead be ignored. Note that the new tests fail when using browser-side navigation, and are currently disabled there. See crbug.com/652767 for details. BUG=651448 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/7226898b5ec5e5d5eb11ef58606e5ca84c435919 Cr-Commit-Position: refs/heads/master@{#423133}

Patch Set 1 #

Patch Set 2 : fix comment #

Patch Set 3 : add browser tests #

Patch Set 4 : address windows test failure #

Patch Set 5 : use existing test file #

Total comments: 4

Patch Set 6 : add additional test logic for download management #

Patch Set 7 : fix download test on windows #

Patch Set 8 : address comments #

Patch Set 9 : fix comment, and disable tests for browser side navigation #

Patch Set 10 : fix comment, and disable tests for browser side navigation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -34 lines) Patch
M chrome/browser/page_load_metrics/metrics_web_contents_observer.cc View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc View 1 2 3 4 5 6 8 chunks +38 lines, -20 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/navigation_handle.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -4 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.browser_tests.filter View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (41 generated)
Bryan McQuade
clamy, PTAL for NavigationHandle change, thanks! csharrison, PTAL for page_load_metrics changes, thanks!
4 years, 2 months ago (2016-09-29 13:55:31 UTC) #13
clamy
Thanks! A few comments below. https://codereview.chromium.org/2380773002/diff/80001/content/public/browser/navigation_handle.h File content/public/browser/navigation_handle.h (right): https://codereview.chromium.org/2380773002/diff/80001/content/public/browser/navigation_handle.h#newcode159 content/public/browser/navigation_handle.h:159: // Returns the response ...
4 years, 2 months ago (2016-09-29 15:35:57 UTC) #20
Bryan McQuade
Thanks! Addressed comments. PTAL. https://codereview.chromium.org/2380773002/diff/80001/content/public/browser/navigation_handle.h File content/public/browser/navigation_handle.h (right): https://codereview.chromium.org/2380773002/diff/80001/content/public/browser/navigation_handle.h#newcode159 content/public/browser/navigation_handle.h:159: // Returns the response headers ...
4 years, 2 months ago (2016-09-29 19:44:16 UTC) #27
Charlie Harrison
LGTM thank you for solving this long standing annoyance!
4 years, 2 months ago (2016-09-29 20:24:23 UTC) #30
clamy
Thanks! Lgtm. Sorry for the delay, was ooo yesterday.
4 years, 2 months ago (2016-10-04 13:56:22 UTC) #32
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/2380773002/140001
4 years, 2 months ago (2016-10-04 13:57:58 UTC) #34
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/309520)
4 years, 2 months ago (2016-10-04 15:10:21 UTC) #36
clamy
Thanks for tracking down the issue in PkzNavigate! Still lgtm.
4 years, 2 months ago (2016-10-05 11:57:02 UTC) #45
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/2380773002/180001
4 years, 2 months ago (2016-10-05 12:01:57 UTC) #49
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 2 months ago (2016-10-05 12:06:36 UTC) #50
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 12:09:01 UTC) #52
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/7226898b5ec5e5d5eb11ef58606e5ca84c435919
Cr-Commit-Position: refs/heads/master@{#423133}

Powered by Google App Engine
This is Rietveld 408576698