DescriptionFix crash in device_sensors.
If a consumer type is not supported, it is not added to
consumers_bitmask_ in AddConsumer. But in RemoveConsumer it is xored
into the mask, because fetcher_->Stop normally returns true for valid
consumer types; then this mask is passed into fetcher_->Fetch, and
e.g. on mac the fetcher crashes.
BUG=
Committed: https://crrev.com/9d8539f53682e5a08a3dfa9524f399aa2406a528
Cr-Commit-Position: refs/heads/master@{#357103}
Patch Set 1 #
Messages
Total messages: 10 (4 generated)
|