[PRImpl] Move WebContents and JourneyLogger into CPRImpl
Change: * Add null-check for PRImpl's "WebContentsStatics.fromRenderFrameHost(renderFrameHost)". And move it to CPRImpl. * JourneyLogger's instantiation is moved from PRImpl's construction to before CPRImpl's construction. Moving it earlier is because JourneyLogger's role includes logging the error before CPRImpl's construction. * BrowserPaymentRequest's creation is no longer done in CPRImpl's construction. This is because BrowserPaymentRequest's constructor calls CPRImpl which is still partially initiated. * The null-checks of client, methodData, details are moved from CPRImpl#initAndValidate() to CPRImpl#createIfParamsValid(), because we don't bother to create CPRImpl if render data is invalid. Acronym: CPRImpl = ComponentPaymentRequestImpl PRImpl = PaymentRequestImpl Bug: 1102522 Change-Id: I0faf70fe6a73b13858b30d1dadb30cf25857eda2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2357090 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#798876}
Showing
Please register or sign in to comment