Index: media/base/android/media_player_android.h |
diff --git a/media/base/android/media_player_android.h b/media/base/android/media_player_android.h |
index 57a9908f139f3036632998df9b6cf17c00b657a6..a6c5e0b7915c29acd415df618cbc073955bba60b 100644 |
--- a/media/base/android/media_player_android.h |
+++ b/media/base/android/media_player_android.h |
@@ -10,6 +10,7 @@ |
#include <memory> |
#include <string> |
+#include "base/android/scoped_java_ref.h" |
#include "base/callback.h" |
#include "base/macros.h" |
#include "base/memory/weak_ptr.h" |
@@ -128,7 +129,7 @@ class MEDIA_EXPORT MediaPlayerAndroid { |
// Attach/Detaches |listener_| for listening to all the media events. If |
// |j_media_player| is NULL, |listener_| only listens to the system media |
// events. Otherwise, it also listens to the events from |j_media_player|. |
- void AttachListener(jobject j_media_player); |
+ void AttachListener(const base::android::JavaRef<jobject>& j_media_player); |
void DetachListener(); |
protected: |