Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1163)

Unified Diff: content/browser/device_sensors/data_fetcher_shared_memory_base.cc

Issue 1428533003: Fix crash in device_sensors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_sensors/data_fetcher_shared_memory_base.cc
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory_base.cc b/content/browser/device_sensors/data_fetcher_shared_memory_base.cc
index 385aa185696eeb8694bbcd2a79a84b180d905e45..17efaa5b16e1199c37dc94023bab40d023c96d19 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory_base.cc
+++ b/content/browser/device_sensors/data_fetcher_shared_memory_base.cc
@@ -91,7 +91,7 @@ void DataFetcherSharedMemoryBase::PollingThread::RemoveConsumer(
if (!fetcher_->Stop(consumer_type))
return;
- consumers_bitmask_ ^= consumer_type;
+ consumers_bitmask_ &= ~consumer_type;
if (!consumers_bitmask_)
timer_.reset(); // will also stop the timer.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698