-
Rouslan Solomakhin authored
This patch refactors the relationship between PaymentRequestDialogView and PaymentRequestState to be more generic. Instead of waiting for the state event of fetching all payment instruments (specific), the view now waits for an initialization task (abstraction) to finish initialization (generic). This will help to add more initialization tasks in follow up patches. For example, PaymentRequestSpec will become an initialization task as well, so the view can wait for the spec to completely initialized, in case if PaymentRequest.show() was called with a promise. Bug: 817073 Change-Id: I19c133ab3084a7a26628380135c21abeeb1c7436 Reviewed-on: https://chromium-review.googlesource.com/c/1478090 Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:
Danyao Wang <danyao@chromium.org> Cr-Commit-Position: refs/heads/master@{#634710}
48fd6e87