Index: webrtc/modules/audio_device/android/audio_record_jni.cc |
diff --git a/webrtc/modules/audio_device/android/audio_record_jni.cc b/webrtc/modules/audio_device/android/audio_record_jni.cc |
index b826ef6883fc32633c0451ba24a50663742e4b5c..2a9eacf838757c10c1978e8d9129134e33fa0bf4 100644 |
--- a/webrtc/modules/audio_device/android/audio_record_jni.cc |
+++ b/webrtc/modules/audio_device/android/audio_record_jni.cc |
@@ -90,11 +90,10 @@ AudioRecordJni::AudioRecordJni(AudioManager* audio_manager) |
j_native_registration_ = j_environment_->RegisterNatives( |
"org/webrtc/voiceengine/WebRtcAudioRecord", native_methods, |
arraysize(native_methods)); |
- j_audio_record_.reset(new JavaAudioRecord( |
- j_native_registration_.get(), |
- j_native_registration_->NewObject( |
- "<init>", "(Landroid/content/Context;J)V", |
- JVM::GetInstance()->context(), PointerTojlong(this)))); |
+ j_audio_record_.reset( |
+ new JavaAudioRecord(j_native_registration_.get(), |
+ j_native_registration_->NewObject( |
+ "<init>", "(J)V", PointerTojlong(this)))); |
// Detach from this thread since we want to use the checker to verify calls |
// from the Java based audio thread. |
thread_checker_java_.DetachFromThread(); |