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

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

Issue 578863002: Fix the indirect pure virtual calls in DataFetcherSharedMemoryBase destructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unsigned 0 compilation Created 6 years, 3 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 | « content/browser/device_sensors/data_fetcher_shared_memory_base.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_sensors/device_inertial_sensor_service.cc
diff --git a/content/browser/device_sensors/device_inertial_sensor_service.cc b/content/browser/device_sensors/device_inertial_sensor_service.cc
index cf96820649e8810236f867e2af3e32f850db83a7..e4c5a31f99168b24c5dc54977985d7ca21ea9365 100644
--- a/content/browser/device_sensors/device_inertial_sensor_service.cc
+++ b/content/browser/device_sensors/device_inertial_sensor_service.cc
@@ -86,12 +86,17 @@ DeviceInertialSensorService::GetSharedMemoryHandleForProcess(
}
void DeviceInertialSensorService::Shutdown() {
- data_fetcher_.reset();
+ if (data_fetcher_) {
+ data_fetcher_->StopFetchingAllDeviceData();
+ data_fetcher_.reset();
+ }
is_shutdown_ = true;
}
void DeviceInertialSensorService::SetDataFetcherForTesting(
DataFetcherSharedMemory* test_data_fetcher) {
+ if (data_fetcher_)
+ data_fetcher_->StopFetchingAllDeviceData();
data_fetcher_.reset(test_data_fetcher);
}
« no previous file with comments | « content/browser/device_sensors/data_fetcher_shared_memory_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698