[PRImpl] Move SettingsAutofillAndPaymentsObserver to UIsManager
Changes: * Move SettingsAutofillAndPaymentsObserver.Observer from PRImpl to UIsManager, which includes these methods: - onMethodDataInitiated - onCreditCardDeleted - onCreditCardUpdated - onAddressDeleted - onAddressUpdated * Create PRLifecycleObserver in CPRImpl * Create PRParams and let PRImpl implement it. * Since some methods depend on mMerchantSupportsAutofillCards, this CL refactor the code that set merchantSupportsAutofillCards with PRLifecycleObserver.onPaymentRequestParamsInitiated * Change mCanUserAddCreditCard to boxed type so that we can assert they are used after defined. mMerchantSupportsAutofillCards is not changed to boxed type because an existing used-before-defined issue crbug.com/1107039. Bug: 1102522 Change-Id: Ib1354e9a3b53f2ce82ce760a70dfa00d46f80813 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2304772 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#790463}
Showing
This diff is collapsed.
Please register or sign in to comment