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

Unified Diff: media/audio/android/audio_record_input.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
« no previous file with comments | « media/audio/android/audio_manager_android.cc ('k') | media/base/android/media_codec_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/android/audio_record_input.cc
diff --git a/media/audio/android/audio_record_input.cc b/media/audio/android/audio_record_input.cc
index 2f69be36cef1d211c4a216a6b674f2e35d3f38be..8e436ff328b00606437f92b32cdaa2b5c5d800e7 100644
--- a/media/audio/android/audio_record_input.cc
+++ b/media/audio/android/audio_record_input.cc
@@ -70,8 +70,8 @@ void AudioRecordInputStream::OnData(JNIEnv* env,
bool AudioRecordInputStream::Open() {
DVLOG(2) << __PRETTY_FUNCTION__;
DCHECK(thread_checker_.CalledOnValidThread());
- return Java_AudioRecordInput_open(
- base::android::AttachCurrentThread(), j_audio_record_.obj());
+ return Java_AudioRecordInput_open(base::android::AttachCurrentThread(),
+ j_audio_record_);
}
void AudioRecordInputStream::Start(AudioInputCallback* callback) {
@@ -87,8 +87,8 @@ void AudioRecordInputStream::Start(AudioInputCallback* callback) {
// The Java thread has not yet started, so we are free to set |callback_|.
callback_ = callback;
- Java_AudioRecordInput_start(
- base::android::AttachCurrentThread(), j_audio_record_.obj());
+ Java_AudioRecordInput_start(base::android::AttachCurrentThread(),
+ j_audio_record_);
}
void AudioRecordInputStream::Stop() {
@@ -99,8 +99,8 @@ void AudioRecordInputStream::Stop() {
return;
}
- Java_AudioRecordInput_stop(
- base::android::AttachCurrentThread(), j_audio_record_.obj());
+ Java_AudioRecordInput_stop(base::android::AttachCurrentThread(),
+ j_audio_record_);
// The Java thread must have been stopped at this point, so we are free to
// clear |callback_|.
@@ -112,8 +112,8 @@ void AudioRecordInputStream::Close() {
DCHECK(thread_checker_.CalledOnValidThread());
Stop();
DCHECK(!callback_);
- Java_AudioRecordInput_close(
- base::android::AttachCurrentThread(), j_audio_record_.obj());
+ Java_AudioRecordInput_close(base::android::AttachCurrentThread(),
+ j_audio_record_);
audio_manager_->ReleaseInputStream(this);
}
« no previous file with comments | « media/audio/android/audio_manager_android.cc ('k') | media/base/android/media_codec_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698