Replace partial OneshotSupplier usage with Callback.
This usage here caused problems when trying to change the method signature of OneshotSupplier[Impl]. This method should not take OneshotSupplier objects because get() is never used. Similarly, the implementation of onAvailable() acts without any consideration for what get() would return. Refactored to use Callback<Callback<T>> to more closely match the usage. Bug: 1144824 Change-Id: I7018d3f66aeba3e7b4449f0afff379f0c7d72506 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2514595Reviewed-by:Tommy Nyquist <nyquist@chromium.org> Reviewed-by:
David Maunder <davidjm@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Commit-Queue: Sky Malice <skym@chromium.org> Cr-Commit-Position: refs/heads/master@{#824154}
Showing
Please register or sign in to comment