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

Issue 1924543002: [page_load_metrics] use data from WebContents::GetOpener (Closed)

Created:
4 years, 8 months ago by Charlie Harrison
Modified:
4 years, 8 months ago
Reviewers:
Bryan McQuade
CC:
chromium-reviews, csharrison+watch_chromium.org, loading-reviews+metrics_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@just_gws_aborts
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This patch uses the WebContents' opener to extract the previous committed url for the very first navigation within the MetricsWebContentsObserver. This is used for the FromGWS abort metrics. This patch was split from the previous CL here: https://codereview.chromium.org/1901303004/ BUG=605259 Committed: https://crrev.com/ff3dd0217b152227db56a7d0731b431873ce88eb Cr-Commit-Position: refs/heads/master@{#389893}

Patch Set 1 #

Total comments: 4

Patch Set 2 : No need for dependent patch set #

Patch Set 3 : Remove about:blank from all processing and use navigation start for opener policy #

Total comments: 7

Patch Set 4 : final review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -10 lines) Patch
M components/page_load_metrics/browser/metrics_web_contents_observer.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M components/page_load_metrics/browser/metrics_web_contents_observer.cc View 1 2 3 6 chunks +20 lines, -7 lines 0 comments Download
M components/page_load_metrics/browser/page_load_metrics_observer.h View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Charlie Harrison
Here's the second patch. I confirmed that the opener is non null for the open ...
4 years, 8 months ago (2016-04-26 18:33:57 UTC) #4
Bryan McQuade
Basically looks good, thanks! I'm inclined to track whether any navs have been initiated rather ...
4 years, 8 months ago (2016-04-26 18:36:39 UTC) #5
Charlie Harrison
I verified behavior in as described in the previous message. I've also updated to ignore ...
4 years, 8 months ago (2016-04-26 19:02:41 UTC) #6
Bryan McQuade
LGTM. Thanks for this! https://codereview.chromium.org/1924543002/diff/40001/components/page_load_metrics/browser/metrics_web_contents_observer.cc File components/page_load_metrics/browser/metrics_web_contents_observer.cc (right): https://codereview.chromium.org/1924543002/diff/40001/components/page_load_metrics/browser/metrics_web_contents_observer.cc#newcode501 components/page_load_metrics/browser/metrics_web_contents_observer.cc:501: if (navigation_handle->GetURL().spec().compare(url::kAboutBlankURL) == 0) seems ...
4 years, 8 months ago (2016-04-26 19:43:31 UTC) #7
Charlie Harrison
Thanks! https://codereview.chromium.org/1924543002/diff/40001/components/page_load_metrics/browser/metrics_web_contents_observer.cc File components/page_load_metrics/browser/metrics_web_contents_observer.cc (right): https://codereview.chromium.org/1924543002/diff/40001/components/page_load_metrics/browser/metrics_web_contents_observer.cc#newcode519 components/page_load_metrics/browser/metrics_web_contents_observer.cc:519: // Pass in the last committed url to ...
4 years, 8 months ago (2016-04-26 20:37:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1924543002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1924543002/60001
4 years, 8 months ago (2016-04-26 20:37:49 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-26 21:27:32 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 21:29:31 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ff3dd0217b152227db56a7d0731b431873ce88eb
Cr-Commit-Position: refs/heads/master@{#389893}

Powered by Google App Engine
This is Rietveld 408576698