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

Unified Diff: device/sensors/sensor_manager_android.cc

Issue 2860633003: Remove redundant static singleton for DeviceSensors (Closed)
Patch Set: Created 3 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 | « device/sensors/android/java/src/org/chromium/device/sensors/DeviceSensors.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensors/sensor_manager_android.cc
diff --git a/device/sensors/sensor_manager_android.cc b/device/sensors/sensor_manager_android.cc
index 10d3d0c73d925bd65d284b67509e8f9bd7d82bca..df2247a802f8bd9504e576c299887dcff6693d58 100644
--- a/device/sensors/sensor_manager_android.cc
+++ b/device/sensors/sensor_manager_android.cc
@@ -62,7 +62,7 @@ SensorManagerAndroid::SensorManagerAndroid()
is_shutdown_(false) {
DCHECK(thread_checker_.CalledOnValidThread());
memset(received_motion_data_, 0, sizeof(received_motion_data_));
- device_sensors_.Reset(Java_DeviceSensors_getInstance(
+ device_sensors_.Reset(Java_DeviceSensors_create(
AttachCurrentThread(), base::android::GetApplicationContext()));
}
« no previous file with comments | « device/sensors/android/java/src/org/chromium/device/sensors/DeviceSensors.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698