[PRImpl] Move url checks and Delegate of initAndValidate() into CPRImpl
Change: * Move part of PRImpl#initAndValidate() into CPRImpl#initAndValidate() * Since the move of initAndValidate() involves Delegate.getInvalidSslCertificateErrorMessage(), PRImpl.Delegate is moved into CPRImpl becoming CPRImpl.Delegate. * Since the move of initAndValidate() involves mPaymentOptions and mRequestShipping, etc., they are duplicated in ComponentPaymentRequestImpl. This duplication is necessary because PRImpl and CPRImpl may lose access to each other, and is without the out-of-sync issue because mPaymentOptions is final. * Since the Delegate depends on ChromeActivity, the ChromeActivity dependencies is refactored to WebContents dependencies. * Simplifies Delegate#isOffTheRecord(), Delegate#isWebContentsActive(), Delegate#getTwaPackageName() because they don't need to rely on a WebContents/ChromeActivity parameter. Bug: 1102522 Change-Id: I62bb66ff7c799020c973394102f57c33c3d0392a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2401783 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:
Evan Stade <estade@chromium.org> Cr-Commit-Position: refs/heads/master@{#807302}
Showing
Please register or sign in to comment