Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Shopping service] Add API to wait for service to be ready
This patch adds an API that allows clients to wait until the shopping services' dependencies are ready to be queried. In practice, we're currently only waiting for sync to finish initialization. If not ready, the callback is delayed until it is, otherwise it is executed immediately. This will be a benefit to UI that shows close to startup and is already using the async APIs in the shopping service. The WebUI handler has been updated to use this. Worth noting: we're not actually blocked on sync, we just need to confirm the consent to use sync is available. Bug: b:283829151 Change-Id: I370f976dda255a98baff53344bfd4e23bbb8f881 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4552801 Commit-Queue: Matthew Jones <mdjones@chromium.org> Reviewed-by: Mei Liang <meiliang@chromium.org> Cr-Commit-Position: refs/heads/main@{#1149768}
- Loading branch information
Showing
10 changed files
with
169 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters