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

Issue 1414603008: Catch IllegalStateException when creating the watchdog player (Closed)

Created:
5 years, 1 month ago by qinmin
Modified:
5 years, 1 month ago
Reviewers:
Ted C, Tima Vaisburd, xhwang
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Catch IllegalStateException when creating the watchdog player It is possible that MediaPlayer.create() can throw an IllegalStateException. Catch the exception and treat it as a media server crash BUG=549601 Committed: https://crrev.com/899bc6eb47d766858b88062f9f9833a327d654a1 Cr-Commit-Position: refs/heads/master@{#357198}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java View 2 chunks +6 lines, -2 lines 2 comments Download

Messages

Total messages: 17 (6 generated)
qinmin
PTAL
5 years, 1 month ago (2015-10-30 19:23:17 UTC) #2
xhwang
rs LGTM
5 years, 1 month ago (2015-10-30 19:30:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414603008/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414603008/1
5 years, 1 month ago (2015-10-30 20:16:08 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/114428)
5 years, 1 month ago (2015-10-30 20:30:53 UTC) #7
qinmin
+tedchoc for OWNER
5 years, 1 month ago (2015-10-30 20:59:21 UTC) #9
Ted C
lgtm
5 years, 1 month ago (2015-10-30 21:12:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414603008/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414603008/1
5 years, 1 month ago (2015-10-30 21:19:32 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 1 month ago (2015-10-30 21:26:39 UTC) #13
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/899bc6eb47d766858b88062f9f9833a327d654a1 Cr-Commit-Position: refs/heads/master@{#357198}
5 years, 1 month ago (2015-10-30 21:27:26 UTC) #14
Tima Vaisburd
https://codereview.chromium.org/1414603008/diff/1/content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java File content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java (right): https://codereview.chromium.org/1414603008/diff/1/content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java#newcode106 content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java:106: try { drive-by: The documentation does not seem to ...
5 years, 1 month ago (2015-10-30 21:54:37 UTC) #16
qinmin
5 years, 1 month ago (2015-10-30 21:58:16 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/1414603008/diff/1/content/public/android/java...
File
content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java
(right):

https://codereview.chromium.org/1414603008/diff/1/content/public/android/java...
content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java:106:
try {
On 2015/10/30 21:54:37, Tima Vaisburd wrote:
> drive-by: The documentation does not seem to tell about exceptions at all, why
> not to catch all exceptions instead of just IllegalStateException?

if u check MediaPlayer.create(), it already catches IllegalArgumentException,
SecurityException and IOException

Powered by Google App Engine
This is Rietveld 408576698