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

Issue 2472163003: [CustomTabs] Report the navigation start as absolute time (Closed)

Created:
4 years, 1 month ago by droger
Modified:
4 years, 1 month ago
CC:
agrieve+watch_chromium.org, asvitkine+watch_chromium.org, chromium-reviews, csharrison+watch_chromium.org, lizeb+watch-custom-tabs_chromium.org, loading-reviews+metrics_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CustomTabs] Report the navigation start as absolute time This CL adds the date of the navigation start (in milliseconds since epoch) to the page load metrics callback. This allows the client application to convert the timings into absolute times. Committed: https://crrev.com/bfa430e1a59cfac9230f836b164621beecba3f02 Cr-Commit-Position: refs/heads/master@{#433507}

Patch Set 1 #

Patch Set 2 : Test #

Patch Set 3 : 80 columns #

Patch Set 4 : One more test for ttfcp #

Total comments: 2

Patch Set 5 : Use TimeTicks #

Patch Set 6 : Comments #

Total comments: 2

Patch Set 7 : Compute time offset #

Total comments: 7

Patch Set 8 : Rebase + comments #

Total comments: 12

Patch Set 9 : Review comments #

Patch Set 10 : Review comments #

Patch Set 11 : Cache tick offset #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -17 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
M base/android/base_jni_registrar.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M base/android/early_trace_event_binding.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M base/android/java/src/org/chromium/base/EarlyTraceEvent.java View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
A base/android/java/src/org/chromium/base/TimeUtils.java View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -0 lines 0 comments Download
A base/android/time_utils.h View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
A base/android/time_utils.cc View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java View 1 2 3 4 5 6 7 8 9 10 5 chunks +18 lines, -1 line 6 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/metrics/PageLoadMetrics.java View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java View 1 2 3 4 5 6 3 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/android_page_load_metrics_observer.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/android_page_load_metrics_observer.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 80 (38 generated)
droger
4 years, 1 month ago (2016-11-04 16:28:36 UTC) #2
droger
Added a test.
4 years, 1 month ago (2016-11-04 17:26:19 UTC) #7
Benoit L
On 2016/11/04 17:26:19, droger wrote: > Added a test. LGTM, thanks!
4 years, 1 month ago (2016-11-07 13:49:49 UTC) #16
droger
+bauerb for PageLoadMetrics.java +bmcquade for android_page_load_metrics_observer.cc
4 years, 1 month ago (2016-11-07 16:23:40 UTC) #18
droger
-bauerb (OOO) + miguelg for PageLoadMetrics.java
4 years, 1 month ago (2016-11-08 09:48:05 UTC) #20
droger
bmcquade, miguelg: ping
4 years, 1 month ago (2016-11-10 12:10:03 UTC) #21
droger
Adding bauerb, csharrison since miguelg and bmcquade are not responding. bauerb: can you OWNER review ...
4 years, 1 month ago (2016-11-14 09:34:20 UTC) #23
Bernhard Bauer
Could you add a BUG= field to the CL? Thanks! https://codereview.chromium.org/2472163003/diff/60001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java (right): https://codereview.chromium.org/2472163003/diff/60001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java#newcode832 ...
4 years, 1 month ago (2016-11-14 10:27:37 UTC) #24
droger
Thanks for the comments. https://codereview.chromium.org/2472163003/diff/60001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java (right): https://codereview.chromium.org/2472163003/diff/60001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java#newcode832 chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java:832: long current = System.currentTimeMillis(); On ...
4 years, 1 month ago (2016-11-14 10:39:19 UTC) #25
Bryan McQuade
On 2016/11/14 at 10:39:19, droger wrote: > Thanks for the comments. > > https://codereview.chromium.org/2472163003/diff/60001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java > ...
4 years, 1 month ago (2016-11-14 15:02:39 UTC) #26
Bernhard Bauer
On 2016/11/14 15:02:39, Bryan McQuade wrote: > On 2016/11/14 at 10:39:19, droger wrote: > > ...
4 years, 1 month ago (2016-11-14 16:17:31 UTC) #27
droger
On 2016/11/14 16:17:31, Bernhard Bauer wrote: > On 2016/11/14 15:02:39, Bryan McQuade wrote: > > ...
4 years, 1 month ago (2016-11-14 16:24:59 UTC) #28
Bernhard Bauer
On 2016/11/14 16:24:59, droger wrote: > On 2016/11/14 16:17:31, Bernhard Bauer wrote: > > On ...
4 years, 1 month ago (2016-11-14 16:33:21 UTC) #29
Bryan McQuade
On 2016/11/14 at 16:17:31, bauerb wrote: > On 2016/11/14 15:02:39, Bryan McQuade wrote: > > ...
4 years, 1 month ago (2016-11-14 16:34:35 UTC) #30
droger
Looking at the code it is not clear to me that the TimeTicks provided by ...
4 years, 1 month ago (2016-11-15 14:33:52 UTC) #31
Bryan McQuade
On 2016/11/15 at 14:33:52, droger wrote: > Looking at the code it is not clear ...
4 years, 1 month ago (2016-11-15 16:00:02 UTC) #36
Charlie Harrison
Yes the two start times are derived from the same timestamp: https://cs.chromium.org/chromium/src/content/renderer/render_frame_impl.cc?rcl=0&l=3319
4 years, 1 month ago (2016-11-15 16:03:32 UTC) #37
droger
Thanks! On 2016/11/15 16:00:02, Bryan McQuade wrote: > Ah, great, thanks for the extra information! ...
4 years, 1 month ago (2016-11-15 16:09:54 UTC) #38
Bernhard Bauer
https://codereview.chromium.org/2472163003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/metrics/PageLoadMetrics.java File chrome/android/java/src/org/chromium/chrome/browser/metrics/PageLoadMetrics.java (right): https://codereview.chromium.org/2472163003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/metrics/PageLoadMetrics.java#newcode28 chrome/android/java/src/org/chromium/chrome/browser/metrics/PageLoadMetrics.java:28: * @param navigationStartMs Absolute navigation start time, in milliseconds ...
4 years, 1 month ago (2016-11-15 16:12:02 UTC) #39
chromium-reviews
FYI: Re: TimeTicks & SystemClock.uptimeMillis() - I've ran into this before and at the time ...
4 years, 1 month ago (2016-11-15 18:13:54 UTC) #40
Bryan McQuade
LGTM, just a few small questions/suggestions. https://codereview.chromium.org/2472163003/diff/160001/base/android/time_utils.cc File base/android/time_utils.cc (right): https://codereview.chromium.org/2472163003/diff/160001/base/android/time_utils.cc#newcode20 base/android/time_utils.cc:20: return RegisterNativesImpl(env); just ...
4 years, 1 month ago (2016-11-17 13:35:39 UTC) #48
Bernhard Bauer
https://codereview.chromium.org/2472163003/diff/160001/base/android/time_utils.cc File base/android/time_utils.cc (right): https://codereview.chromium.org/2472163003/diff/160001/base/android/time_utils.cc#newcode16 base/android/time_utils.cc:16: return TimeTicks::Now().ToInternalValue(); See my comment on https://codereview.chromium.org/2472163003/diff/100001/chrome/browser/page_load_metrics/observers/android_page_load_metrics_observer.cc#newcode45: Can you ...
4 years, 1 month ago (2016-11-17 16:14:28 UTC) #49
Benoit L
On 2016/11/17 16:14:28, Bernhard Bauer wrote: > https://codereview.chromium.org/2472163003/diff/160001/base/android/time_utils.cc > File base/android/time_utils.cc (right): > > https://codereview.chromium.org/2472163003/diff/160001/base/android/time_utils.cc#newcode16 ...
4 years, 1 month ago (2016-11-17 16:58:20 UTC) #50
droger
Thanks for the reviews. +torne for base/android and base/android/java/src/org/chromium/base https://codereview.chromium.org/2472163003/diff/160001/base/android/time_utils.cc File base/android/time_utils.cc (right): https://codereview.chromium.org/2472163003/diff/160001/base/android/time_utils.cc#newcode16 base/android/time_utils.cc:16: ...
4 years, 1 month ago (2016-11-18 10:23:21 UTC) #52
droger
On 2016/11/18 10:23:21, droger wrote: > +torne for base/android and base/android/java/src/org/chromium/base Forgot to add: this ...
4 years, 1 month ago (2016-11-18 10:25:30 UTC) #53
Torne
base LGTM
4 years, 1 month ago (2016-11-18 11:20:30 UTC) #54
Torne
base LGTM
4 years, 1 month ago (2016-11-18 11:20:30 UTC) #55
Bernhard Bauer
https://codereview.chromium.org/2472163003/diff/180001/base/android/java/src/org/chromium/base/TimeUtils.java File base/android/java/src/org/chromium/base/TimeUtils.java (right): https://codereview.chromium.org/2472163003/diff/180001/base/android/java/src/org/chromium/base/TimeUtils.java#newcode11 base/android/java/src/org/chromium/base/TimeUtils.java:11: public class TimeUtils { Add a private empty constructor ...
4 years, 1 month ago (2016-11-18 11:53:44 UTC) #56
droger
https://codereview.chromium.org/2472163003/diff/180001/base/android/java/src/org/chromium/base/TimeUtils.java File base/android/java/src/org/chromium/base/TimeUtils.java (right): https://codereview.chromium.org/2472163003/diff/180001/base/android/java/src/org/chromium/base/TimeUtils.java#newcode11 base/android/java/src/org/chromium/base/TimeUtils.java:11: public class TimeUtils { On 2016/11/18 11:53:44, Bernhard Bauer ...
4 years, 1 month ago (2016-11-18 13:43:39 UTC) #57
Bernhard Bauer
https://codereview.chromium.org/2472163003/diff/180001/base/android/java/src/org/chromium/base/TimeUtils.java File base/android/java/src/org/chromium/base/TimeUtils.java (right): https://codereview.chromium.org/2472163003/diff/180001/base/android/java/src/org/chromium/base/TimeUtils.java#newcode11 base/android/java/src/org/chromium/base/TimeUtils.java:11: public class TimeUtils { On 2016/11/18 13:43:39, droger wrote: ...
4 years, 1 month ago (2016-11-18 14:07:00 UTC) #58
droger
https://codereview.chromium.org/2472163003/diff/180001/base/android/java/src/org/chromium/base/TimeUtils.java File base/android/java/src/org/chromium/base/TimeUtils.java (right): https://codereview.chromium.org/2472163003/diff/180001/base/android/java/src/org/chromium/base/TimeUtils.java#newcode11 base/android/java/src/org/chromium/base/TimeUtils.java:11: public class TimeUtils { On 2016/11/18 14:07:00, Bernhard Bauer ...
4 years, 1 month ago (2016-11-18 15:14:09 UTC) #62
Bernhard Bauer
Thanks, LGTM.
4 years, 1 month ago (2016-11-18 15:30:30 UTC) #63
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/2472163003/260001
4 years, 1 month ago (2016-11-21 09:49:18 UTC) #68
commit-bot: I haz the power
Committed patchset #11 (id:260001)
4 years, 1 month ago (2016-11-21 10:58:52 UTC) #70
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/bfa430e1a59cfac9230f836b164621beecba3f02 Cr-Commit-Position: refs/heads/master@{#433507}
4 years, 1 month ago (2016-11-21 11:01:03 UTC) #72
pasko
https://codereview.chromium.org/2472163003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java (right): https://codereview.chromium.org/2472163003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode133 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:133: private long mOffsetTick; saw this in Benoit's rebase, thoughts: ...
4 years, 1 month ago (2016-11-21 17:16:37 UTC) #74
droger
Thanks, will address your comments in a follow up. https://codereview.chromium.org/2472163003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java (right): https://codereview.chromium.org/2472163003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode701 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:701: ...
4 years, 1 month ago (2016-11-21 17:28:02 UTC) #75
pasko
https://codereview.chromium.org/2472163003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java (right): https://codereview.chromium.org/2472163003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode701 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:701: mOffsetTick = nativeNowUs - javaNowUs; On 2016/11/21 17:28:02, droger ...
4 years, 1 month ago (2016-11-21 18:56:11 UTC) #76
Bryan McQuade
https://codereview.chromium.org/2472163003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java (right): https://codereview.chromium.org/2472163003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode701 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:701: mOffsetTick = nativeNowUs - javaNowUs; On 2016/11/21 at 18:56:11, ...
4 years, 1 month ago (2016-11-21 19:05:53 UTC) #77
droger
On 2016/11/21 18:56:11, pasko wrote: > > On 2016/11/21 17:16:37, pasko wrote: > > > ...
4 years, 1 month ago (2016-11-22 10:33:05 UTC) #78
droger
Follow-up CL: https://codereview.chromium.org/2520233003
4 years, 1 month ago (2016-11-22 11:57:45 UTC) #79
pasko
4 years, 1 month ago (2016-11-22 16:21:15 UTC) #80
Message was sent while issue was closed.
droger and bmcquade: thank you for the summary of the discussion!

Powered by Google App Engine
This is Rietveld 408576698