Fix missing USS controller stop completion
DataTypeManager is allowed to call Stop() while a datatype is NOT_RUNNING or FAILED. In both cases, the function should be a no-op, but the completion callback should be called. Prior to this patch, the completion callback would NOT be run and hence future sync reconfigurations may never complete, leading to weird behavior including UI implications (missing updates), UMA metric biases (error-related scenarios may be underrepresented) and issues related custom passphrase encryption (which may never start or never complete, observed in tests and the reason why this bug got surfaced). Bug: 898453,870624 Change-Id: I47a9c04ab34ac48e0fdf000df2acb70bbf3e4446 Reviewed-on: https://chromium-review.googlesource.com/c/1297419Reviewed-by:Jan Krcal <jkrcal@chromium.org> Commit-Queue: Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#602300}
Showing
Please register or sign in to comment