commit | 48fd6e872c04efca7abc718c5e3099e3c464891b | [log] [tgz] |
---|---|---|
author | Rouslan Solomakhin <rouslan@chromium.org> | Fri Feb 22 17:23:10 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 22 17:23:10 2019 |
tree | 6a8fd5a6d48529a30ae2b97972dceefa5dba18f6 | |
parent | 5d000c09a261ec9af39ce306c4a6adaef50d7f25 [diff] |
[Payment Request][Desktop] State initialization task. 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}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .