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

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

Issue 1064863002: Fix data fetcher for light stop correctly on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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_win.cc
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory_win.cc b/content/browser/device_sensors/data_fetcher_shared_memory_win.cc
index 8abd447b82c0c000d6e3b83e873cb8b104cb28c8..cf9f5bfbc883e77531e0b259a4f6237c85b253e6 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory_win.cc
+++ b/content/browser/device_sensors/data_fetcher_shared_memory_win.cc
@@ -341,12 +341,13 @@ bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
bool DataFetcherSharedMemory::Stop(ConsumerType consumer_type) {
DisableSensors(consumer_type);
- SetBufferAvailableState(consumer_type, false);
switch (consumer_type) {
case CONSUMER_TYPE_ORIENTATION:
+ SetBufferAvailableState(consumer_type, false);
orientation_buffer_ = nullptr;
return true;
case CONSUMER_TYPE_MOTION:
+ SetBufferAvailableState(consumer_type, false);
motion_buffer_ = nullptr;
return true;
case CONSUMER_TYPE_LIGHT:
« 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