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

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

Issue 917253002: [Android] Move the android Device Sensors API to the UI thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplify shutdown Created 5 years, 10 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
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 840ce254bc1c0b284c97c931f77044e5b0bd6ff4..37952475532c921f47312f0f2b7139ce37b74222 100644
--- a/content/browser/device_sensors/device_inertial_sensor_service.cc
+++ b/content/browser/device_sensors/device_inertial_sensor_service.cc
@@ -94,7 +94,7 @@ DeviceInertialSensorService::GetSharedMemoryHandleForProcess(
void DeviceInertialSensorService::Shutdown() {
if (data_fetcher_) {
- data_fetcher_->StopFetchingAllDeviceData();
+ data_fetcher_->Shutdown();
data_fetcher_.reset();
}
is_shutdown_ = true;
@@ -103,7 +103,7 @@ void DeviceInertialSensorService::Shutdown() {
void DeviceInertialSensorService::SetDataFetcherForTesting(
DataFetcherSharedMemory* test_data_fetcher) {
if (data_fetcher_)
- data_fetcher_->StopFetchingAllDeviceData();
+ data_fetcher_->Shutdown();
data_fetcher_.reset(test_data_fetcher);
}

Powered by Google App Engine
This is Rietveld 408576698