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

Unified Diff: device/usb/usb_service_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/usb/usb_service_android.cc
diff --git a/device/usb/usb_service_android.cc b/device/usb/usb_service_android.cc
index 8ec24280225d54cb049283a0918bd5fcc74ed9eb..e29880d400b049d89b99e23926c7b0366b62a04e 100644
--- a/device/usb/usb_service_android.cc
+++ b/device/usb/usb_service_android.cc
@@ -7,7 +7,6 @@
#include <string>
#include <vector>
-#include "base/android/context_utils.h"
#include "base/bind.h"
#include "base/location.h"
#include "base/sequenced_task_runner.h"
@@ -30,8 +29,7 @@ UsbServiceAndroid::UsbServiceAndroid()
: UsbService(nullptr), weak_factory_(this) {
JNIEnv* env = AttachCurrentThread();
j_object_.Reset(
- Java_ChromeUsbService_create(env, base::android::GetApplicationContext(),
- reinterpret_cast<jlong>(this)));
+ Java_ChromeUsbService_create(env, reinterpret_cast<jlong>(this)));
ScopedJavaLocalRef<jobjectArray> devices =
Java_ChromeUsbService_getDevices(env, j_object_);
jsize length = env->GetArrayLength(devices.obj());

Powered by Google App Engine
This is Rietveld 408576698