DescriptionSync: fix crash in DeviceInfoDataTypeController::Subscription destructor.
There are reports of crashes in DeviceInfoDataTypeController destructor. The
crash occurs when DeviceInfoDataTypeController has a pending subscription to
LocalDeviceInfoProvider and LocalDeviceInfoProvider gets destroyed first. This
doesn't happen normally as the subscription gets cleared once
LocalDeviceInfoProvider finishes its initialization.
The fix is to clear subscription in StopModel overrides in the two classes that
hold DeviceInfoDataTypeController::Subscription.
BUG=426205
Committed: https://crrev.com/71fcc6c0d1ca865879da48c85b94e4c35f5a378a
Cr-Commit-Position: refs/heads/master@{#301053}
Patch Set 1 #
Messages
Total messages: 9 (2 generated)
|