RC: Pass the previous state to the OnLoadingState change callback
Without this the observers who only care about the Loaded <=> Loading transitions don't know if a transition to Loading is coming from a Loaded state or not (some logic could be added in the observer directly but this seems cleaner). Change-Id: I077314c2afc800f14dfddd3b65fa4530feacb559 Reviewed-on: https://chromium-review.googlesource.com/1096306Reviewed-by:Chris Hamilton <chrisha@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Commit-Queue: Sébastien Marchand <sebmarchand@chromium.org> Cr-Commit-Position: refs/heads/master@{#566715}
Showing
Please register or sign in to comment