Index: media/base/android/java/src/org/chromium/media/MediaDrmBridge.java |
diff --git a/media/base/android/java/src/org/chromium/media/MediaDrmBridge.java b/media/base/android/java/src/org/chromium/media/MediaDrmBridge.java |
index 431a0a549edec91e591ce9eeece6ddabe20a59a7..6477a36ecf95f8a1606004e9896968c6e912af01 100644 |
--- a/media/base/android/java/src/org/chromium/media/MediaDrmBridge.java |
+++ b/media/base/android/java/src/org/chromium/media/MediaDrmBridge.java |
@@ -10,6 +10,7 @@ import android.media.MediaDrm; |
import android.os.AsyncTask; |
import android.os.Build; |
import android.os.Handler; |
+import android.os.Looper; |
import org.chromium.base.Log; |
import org.chromium.base.annotations.CalledByNative; |
@@ -209,7 +210,7 @@ public class MediaDrmBridge { |
mNativeMediaDrmBridge = nativeMediaDrmBridge; |
assert isNativeMediaDrmBridgeValid(); |
- mHandler = new Handler(); |
+ mHandler = new Handler(Looper.getMainLooper()); |
mSessionIds = new HashMap<ByteBuffer, String>(); |
mPendingCreateSessionDataQueue = new ArrayDeque<PendingCreateSessionData>(); |
mResetDeviceCredentialsPending = false; |