components/payments/content/payment_request.h is very big and not very unittestable.
It should be refactored into parts.
PaymentRequestState will contain everything about the user's state in the flow: what their selections are, and whether they are ready to pay.
PaymentRequestSpec will contain everything about the merchant specification: are they requesting shipping info, payer's info, or what are their supported forms of payments.
Comment 1 by bugdroid1@chromium.org
, Mar 15 2017