Index: media/capture/content/android/screen_capture_machine_android.cc |
diff --git a/media/capture/content/android/screen_capture_machine_android.cc b/media/capture/content/android/screen_capture_machine_android.cc |
index df57fa2871f37c1a19973b416ad5eb7a235295c1..f3b2ee90970949b4efd9156143c4c424757d8f7d 100644 |
--- a/media/capture/content/android/screen_capture_machine_android.cc |
+++ b/media/capture/content/android/screen_capture_machine_android.cc |
@@ -220,7 +220,7 @@ void ScreenCaptureMachineAndroid::Start( |
DCHECK(!(params.requested_format.frame_size.height() % 2)); |
const jboolean ret = Java_ScreenCapture_startPrompt( |
- AttachCurrentThread(), j_capture_.obj(), |
+ AttachCurrentThread(), j_capture_, |
params.requested_format.frame_size.width(), |
params.requested_format.frame_size.height()); |
@@ -228,7 +228,7 @@ void ScreenCaptureMachineAndroid::Start( |
} |
void ScreenCaptureMachineAndroid::Stop(const base::Closure& callback) { |
- Java_ScreenCapture_stopCapture(AttachCurrentThread(), j_capture_.obj()); |
+ Java_ScreenCapture_stopCapture(AttachCurrentThread(), j_capture_); |
callback.Run(); |
} |