AW: better support resetting WebViewClientCompat

This modifies SupportLibWebViewContentsClientAdapter to better support
resetting WebViewClient, without re-instantiating the adapter object,
and lets SupportLibWebViewContentsClientAdapter be 1:1 with
WebViewContentsClientAdapter.

Previously, we would re-instantiate
SupportLibWebViewContentsClientAdapter each time we re-set
WebViewClient. However, this isn't necessary, since we need only
associate the new WebViewClient with the same
SupportLibWebViewContentsClientAdapter.

This will be helpful if we ever add WebChromeClientCompat, since we can
re-set either WebViewClient/WebChromeClient without re-instantiating the
entire object.

Bug: 781764
Test: Manual
Change-Id: Id4a099a38fda2ecc4aeed1f68f83c158f85efef2
Reviewed-on: https://chromium-review.googlesource.com/1006184
Reviewed-by: Gustav Sennton <gsennton@chromium.org>
Reviewed-by: Richard Coles <torne@chromium.org>
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#550362}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: abfcc4e6dffdeed209ac45f4010ab8fba2cb9546
1 file changed
tree: 0f43731522981c250d4898fe35fb8baac9014acd
  1. java/
  2. BUILD.gn
  3. generate_resource_rewriter.gni
  4. glue.gni