Handle correctly the situation when PasswordStore is destroyed on the UI thread.
PasswordStore uses SKIP_ON_SHUTDOWN for background sequence. That means that PasswordStore::DestroyOnBackgroundThread() can be skipped. In this case PasswordStore::* may be destroyed on the UI thread. It's not a problem for PasswordSyncableService. We just need to remove the check in the destructor. PasswordReuseDetector has this check implicitly via base::CancelableTaskTracker. Thus, we can just leak the object. Bug: 741660 Change-Id: Ic49cb068733c159bca55e8d76eb58f70793f5fbe Reviewed-on: https://chromium-review.googlesource.com/598008Reviewed-by:Vadym Doroshenko <dvadym@chromium.org> Commit-Queue: Vasilii Sukhanov <vasilii@chromium.org> Cr-Commit-Position: refs/heads/master@{#491422}
Showing
Please register or sign in to comment