Modify EnterpriseInfo to more easily support multiple consumers
In preparation for future changes, modify EnterpriseInfo to return the results of a "ownership" request using a callback to the waiting function. This change allows for multiple queued callback to wait on a single async request. These changes make it simpler to add additional consumers of the class. The result of the computation is then cached for future use. The lifetime of this cache is the lifetime of the application. Bug: 1085168 Change-Id: I59c9d6f295d75492ddab762dc307fa67ecf21760 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2252739Reviewed-by:Theresa <twellington@chromium.org> Reviewed-by:
Wenyu Fu <wenyufu@chromium.org> Commit-Queue: Steven Bingler <bingler@chromium.org> Cr-Commit-Position: refs/heads/master@{#782830}
Showing
Please register or sign in to comment