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

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

Issue 2237943002: Remove now-unnecessary .obj() in Java method calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@switch-context
Patch Set: Rebase *again* :( Created 4 years, 4 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/sensor_manager_android.cc
diff --git a/content/browser/device_sensors/sensor_manager_android.cc b/content/browser/device_sensors/sensor_manager_android.cc
index 7c293c96de7bd499053cbe66904f836efc237e0a..ad56eadc5e5116dc54f1859139e47816327dacab 100644
--- a/content/browser/device_sensors/sensor_manager_android.cc
+++ b/content/browser/device_sensors/sensor_manager_android.cc
@@ -211,32 +211,29 @@ bool SensorManagerAndroid::Start(ConsumerType consumer_type) {
int rate_in_microseconds = (consumer_type == CONSUMER_TYPE_LIGHT)
? kLightSensorIntervalMicroseconds
: kDeviceSensorIntervalMicroseconds;
- return Java_DeviceSensors_start(AttachCurrentThread(),
- device_sensors_.obj(),
- reinterpret_cast<intptr_t>(this),
- static_cast<jint>(consumer_type),
- rate_in_microseconds);
+ return Java_DeviceSensors_start(
+ AttachCurrentThread(), device_sensors_, reinterpret_cast<intptr_t>(this),
+ static_cast<jint>(consumer_type), rate_in_microseconds);
}
void SensorManagerAndroid::Stop(ConsumerType consumer_type) {
DCHECK(!device_sensors_.is_null());
- Java_DeviceSensors_stop(AttachCurrentThread(),
- device_sensors_.obj(),
+ Java_DeviceSensors_stop(AttachCurrentThread(), device_sensors_,
static_cast<jint>(consumer_type));
}
int SensorManagerAndroid::GetNumberActiveDeviceMotionSensors() {
DCHECK(!device_sensors_.is_null());
return Java_DeviceSensors_getNumberActiveDeviceMotionSensors(
- AttachCurrentThread(), device_sensors_.obj());
+ AttachCurrentThread(), device_sensors_);
}
SensorManagerAndroid::OrientationSensorType
SensorManagerAndroid::GetOrientationSensorTypeUsed() {
DCHECK(!device_sensors_.is_null());
return static_cast<SensorManagerAndroid::OrientationSensorType>(
- Java_DeviceSensors_getOrientationSensorTypeUsed(
- AttachCurrentThread(), device_sensors_.obj()));
+ Java_DeviceSensors_getOrientationSensorTypeUsed(AttachCurrentThread(),
+ device_sensors_));
}
// ----- Shared memory API methods
« no previous file with comments | « content/browser/android/web_contents_observer_proxy.cc ('k') | content/browser/frame_host/navigation_controller_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698