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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java

Issue 1611193004: Catch runtime exception when creating MediaThrottler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java b/content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java
index 9992704b8715a703656c89d025a32896eeeb9b61..ece07e1c9eba85283f6f6bdcbd09e140d6bfa4b3 100644
--- a/content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java
+++ b/content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java
@@ -107,6 +107,8 @@ class MediaThrottler implements MediaPlayer.OnErrorListener {
mPlayer = MediaPlayer.create(mContext, R.raw.empty);
} catch (IllegalStateException e) {
Log.e(TAG, "Exception happens while creating the watch dog player.", e);
+ } catch (RuntimeException e) {
+ Log.e(TAG, "Exception happens while creating the watch dog player.", e);
}
if (mPlayer == null) {
Log.e(TAG, "Unable to create watch dog player, treat it as server crash.");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698