[go: nahoru, domu]

Fix crash in ProfileSyncService::GetDisableReasons()

PeopleHandler somehow gets destroyed after ProfileSyncService shutdown,
so |auth_manager_| is nullptr during its destruction. This caused the
crash in GetDisableReasons().

Fix is to simply check |auth_manager_| before dereferencing. Avoiding
PSS usages after shutdown would be cleaner fix, but it's not clear why
they happen atm.

Bug: 1043642, 906995
Change-Id: Id6d54a2edee1210a579e36b2b771d360c8c40474
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2011220
Commit-Queue: Maksim Moskvitin <mmoskvitin@google.com>
Reviewed-by: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733582}
2 files changed