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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java

Issue 2472163003: [CustomTabs] Report the navigation start as absolute time (Closed)
Patch Set: Cache tick offset Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
index 20c8cd28cc90f3ce882345c2d8e3fba11140e9fc..2bb8fcdf6ac225dbcf7d8f2230c3ed8f8f12394a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
@@ -130,11 +130,12 @@ public class CustomTabActivity extends ChromeActivity {
}
@Override
- public void onFirstContentfulPaint(WebContents webContents, long firstContentfulPaintMs) {
+ public void onFirstContentfulPaint(
+ WebContents webContents, long navigationStartTick, long firstContentfulPaintMs) {
if (webContents != mTab.getWebContents()) return;
- mConnection.notifyPageLoadMetric(
- mSession, PageLoadMetrics.FIRST_CONTENTFUL_PAINT, firstContentfulPaintMs);
+ mConnection.notifyPageLoadMetric(mSession, PageLoadMetrics.FIRST_CONTENTFUL_PAINT,
+ navigationStartTick, firstContentfulPaintMs);
}
}

Powered by Google App Engine
This is Rietveld 408576698