[PasswordManager] Fix for PasswordStoreX::UpdateMigrationPref()
In PasswordStoreX migration_step_pref_ gets destroyed on the UI thread in PasswordStoreX::ShutdownOnUIThread() but there could be already a task posted in PasswordStoreX::UpdateMigrationToLoginDBStep() that would actually consume the destroyed pref. We should invalidate the weak pointer when destroying the migration_step_pref_ to make sure any posted tasks are preempted! Change-Id: I7af97af346c61d352e8a294ce4998e641c8f08f6 Bug: 988417 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1722841 Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org> Auto-Submit: Mohamed Amir Yosef <mamir@chromium.org> Reviewed-by:Christos Froussios <cfroussios@chromium.org> Reviewed-by:
Vasilii Sukhanov <vasilii@chromium.org> Cr-Commit-Position: refs/heads/master@{#681781}
Showing
Please register or sign in to comment