Fix handling of errors while canceling start in ModelTypeController
The scenario should be rare but still worth proper handling: if a datatype's start is being cancelled, we may still receive an error because initialization failed. That should be treated similarly as the regular error flow, and enter the FAILED state. As bonus point, unit tests are added for the more conventional cases too, although their behavior hasn't changed in this patch. Bug: 870624 Change-Id: I00094a4309bc40c50e088c12291e6406c8bbb5d9 Reviewed-on: https://chromium-review.googlesource.com/1248741 Commit-Queue: Mikel Astiz <mastiz@chromium.org> Reviewed-by:Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#594680}
Showing
Please register or sign in to comment