DescriptionSet unregistered handles to NULL in BatteryStatusObserver::Stop
BatteryStatusObserver::Stop can be called twice from
BatteryStatusService::Shutdown, so power_handle_ and batter_change_handle_
should be set to NULL on the first call, otherwise the second call
will pass invalid handles to UnregisterNotification.
Committed: https://crrev.com/5db108fb20e9159956cff0af45a505ca52bb80d6
Cr-Commit-Position: refs/heads/master@{#317321}
Patch Set 1 #
Created: 5 years, 10 months ago
Messages
Total messages: 7 (2 generated)
|