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

Issue 2800873002: Update both end time and end reason when we don't have an end time. (Closed)

Created:
3 years, 8 months ago by Bryan McQuade
Modified:
3 years, 8 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, csharrison+watch_chromium.org, extensions-reviews_chromium.org, loading-reviews+metrics_chromium.org, speed-metrics-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update both end time and end reason when we don't have an end time. In the PageLoadTracker destructor, if we encounter a load without an end time, we use the current time as the end time. However, this causes a DCHECK in GetPageLoadExtraInfo to fire shortly after, since the end time and end reason are out of sync. This change makes sure that both end time and end reason stay in sync when this case is encountered. This also re-enables a disabled test that was failing due to the GetPageLoadExtraInfo DCHECK. BUG=651844 Review-Url: https://codereview.chromium.org/2800873002 Cr-Commit-Position: refs/heads/master@{#462317} Committed: https://chromium.googlesource.com/chromium/src/+/6b17878ebc18e3f4df888b42ec74e5d3b4b0be94

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M chrome/browser/extensions/isolated_app_browsertest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_tracker.cc View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 16 (10 generated)
Bryan McQuade
PTAL, thanks!
3 years, 8 months ago (2017-04-05 18:58:54 UTC) #4
Charlie Harrison
lgtm
3 years, 8 months ago (2017-04-05 19:07:59 UTC) #5
Bryan McQuade
rdevlin, PTAL for extensions browsertest fix, thanks!
3 years, 8 months ago (2017-04-05 20:23:35 UTC) #10
Devlin
lgtm!
3 years, 8 months ago (2017-04-06 01:21:14 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/2800873002/1
3 years, 8 months ago (2017-04-06 01:40:47 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 01:48:16 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/6b17878ebc18e3f4df888b42ec74...

Powered by Google App Engine
This is Rietveld 408576698