AW: rename onReceivedError2 to onReceivedError

No change to logic. This renames onReceivedError2() to onReceivedError()
now that there's only one version of this callback in the code. This is
a follow-up to https://crrev.com/c/3485449.

This is a mostly mechanical replacement. The only manual change in this
CL was moving the "Android.WebView.onReceivedError.ErrorCode" histogram
into the glue layer (SharedWebViewContentsClientAdapter) so that we can
remove the old AwContentsClient.onReceivedError() implementation,
however this should not cause any data inconsistencies for the
histogram.

Fixed: 1297787
Test: run_webview_instrumentation_test_apk
Change-Id: Ied3ad9f22adb12eaae8011a435f74c47894aab7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3561680
Auto-Submit: Nate Fischer <ntfschr@chromium.org>
Reviewed-by: Bo Liu <boliu@chromium.org>
Commit-Queue: Bo Liu <boliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#987423}
NOKEYCHECK=True
GitOrigin-RevId: 84feb5091fd36ed5852f7d9399f3a1c2a9d813ee
1 file changed
tree: eeeba2c34695b540b65a220a950b25b4df8750b7
  1. java/
  2. BUILD.gn
  3. README.md
README.md

//android_webview/glue/

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