[Payment Request] PaymentRequestCache, a map of WebState to PaymentRequests
- Creates a PaymentRequestCache class as KeyedService along with its factory to ensure only one instance of it exists per BrowserState. - PaymentRequestCache maintains a map of web::WebState to a list of payments::PaymentRequest instances maintained for that WebState. - The PaymentRequestCache instance can be accessed in browser tests via the instance of BrowserState in order to verify the correct creation and state of payments::PaymentRequest objects. BUG=602666 Change-Id: I4aef5be49ab93261bcbebd6f742378bcca59938e Reviewed-on: https://chromium-review.googlesource.com/577379Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Commit-Queue: mahmadi <mahmadi@chromium.org> Cr-Commit-Position: refs/heads/master@{#487909}
Showing
Please register or sign in to comment