| Index: webrtc/modules/audio_device/android/ensure_initialized.cc
|
| diff --git a/webrtc/modules/audio_device/android/ensure_initialized.cc b/webrtc/modules/audio_device/android/ensure_initialized.cc
|
| index 9bc08ab196d489a30ebbaa6d2d917c1dc27308ec..b82d4b7a4c6c7ea89b6e701084dc4161463bf893 100644
|
| --- a/webrtc/modules/audio_device/android/ensure_initialized.cc
|
| +++ b/webrtc/modules/audio_device/android/ensure_initialized.cc
|
| @@ -17,7 +17,6 @@
|
| // Note: this dependency is dangerous since it reaches into Chromium's base.
|
| // There's a risk of e.g. macro clashes. This file may only be used in tests.
|
| RTC_PUSH_IGNORING_WUNDEF()
|
| -#include "base/android/context_utils.h"
|
| #include "base/android/jni_android.h"
|
| RTC_POP_IGNORING_WUNDEF()
|
| #include "webrtc/base/checks.h"
|
| @@ -35,10 +34,9 @@ void EnsureInitializedOnce() {
|
| JNIEnv* jni = ::base::android::AttachCurrentThread();
|
| JavaVM* jvm = NULL;
|
| RTC_CHECK_EQ(0, jni->GetJavaVM(&jvm));
|
| - jobject context = ::base::android::GetApplicationContext().obj();
|
|
|
| // Initialize the Java environment (currently only used by the audio manager).
|
| - webrtc::JVM::Initialize(jvm, context);
|
| + webrtc::JVM::Initialize(jvm);
|
| }
|
|
|
| void EnsureInitialized() {
|
|
|