WebView: Adding back WebView load time calculation with updated API.

Due to API council feedback in b/184026615, the way Android recorded
some load times was through an array and the way to retrieve
them was through indices of the array. There was a change which transformed the array into a group of getter methods.

WeBview now uses one of the get methods to record when WebView began loading into memory and subtracts the time at the end of loading WebView to get the total load time.

Bug: 1208089
Test: See the associated bug for testing details.
Change-Id: I47d453f69496f303c1c945d11a44abd9e24d8a27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3803354
Commit-Queue: Adam Walls <avvall@google.com>
Reviewed-by: Richard Coles <torne@chromium.org>
Reviewed-by: Michael Bai <michaelbai@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1030219}
GitOrigin-RevId: 723ca35b4cecc3ffb79ed74542fe663c1171cd75
1 file changed
tree: 5df64eea93353b99088700e45d6a1f70c555abdd
  1. java/
  2. BUILD.gn
  3. README.md


This folder contains a shim layer between the public frameworks APIs (android.webkit.*) and WebView's implementation, and allows them to (mostly) not directly depend on each other.

Folder Dependencies

//android_webview/java/ must not depend on this directory.

See Also