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

Unified Diff: device/sensors/sensor_manager_android.cc

Issue 2847523002: Android: Remove GetApplicationContext part 4 (Closed)
Patch Set: Rebase and fix build Created 3 years, 7 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: device/sensors/sensor_manager_android.cc
diff --git a/device/sensors/sensor_manager_android.cc b/device/sensors/sensor_manager_android.cc
index df2247a802f8bd9504e576c299887dcff6693d58..47aeb1d0424e0604e34782fc190f0508c5047581 100644
--- a/device/sensors/sensor_manager_android.cc
+++ b/device/sensors/sensor_manager_android.cc
@@ -6,7 +6,6 @@
#include <string.h>
-#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/bind.h"
#include "base/memory/singleton.h"
@@ -62,8 +61,7 @@ SensorManagerAndroid::SensorManagerAndroid()
is_shutdown_(false) {
DCHECK(thread_checker_.CalledOnValidThread());
memset(received_motion_data_, 0, sizeof(received_motion_data_));
- device_sensors_.Reset(Java_DeviceSensors_create(
- AttachCurrentThread(), base::android::GetApplicationContext()));
+ device_sensors_.Reset(Java_DeviceSensors_create(AttachCurrentThread()));
}
SensorManagerAndroid::~SensorManagerAndroid() {}

Powered by Google App Engine
This is Rietveld 408576698