[Signin] Don't call ConfirmSyncDataStateMachine callback on destruction
This CL fixes a crash on older versions of Android that happens when ConfirmSyncDataStateMachine.cancel invokes a cancellation callback and this callback ends up accessing the activity that is being destroyed. This CL addresses the issue by suppressing the cancellation callback when ConfirmSyncDataStateMachine is cancelled because of activity destruction. Bug: 806138 Change-Id: I55ac2e749d417fddddb3727a6781ecf58c519d1b Reviewed-on: https://chromium-review.googlesource.com/895590Reviewed-by:Bernhard Bauer <bauerb@chromium.org> Commit-Queue: Boris Sazonov <bsazonov@chromium.org> Cr-Commit-Position: refs/heads/master@{#533662}
Showing
Please register or sign in to comment