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

Issue 1224053003: Clear Key CDM should resolve the promise if session not found (Closed)

Created:
5 years, 5 months ago by jrummell
Modified:
5 years, 5 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org, eme-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear Key CDM should resolve the promise if session not found Rather than rejecting the promise with an error, Clear Key should resolve the promise with an empty string (which will get passed to Blink as false). Also updates the browser test to verify that false is actually returned. For prefixed EME an error still needs to be returned. BUG=507736 TEST=updated test passes Committed: https://crrev.com/14fae6f63de53924e602035d8344dca6b19adf66 Cr-Commit-Position: refs/heads/master@{#338347}

Patch Set 1 #

Total comments: 15

Patch Set 2 : simplify prefixed #

Total comments: 12

Patch Set 3 : changes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -13 lines) Patch
M chrome/browser/media/encrypted_media_browsertest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M media/cdm/ppapi/external_clear_key/clear_key_cdm.cc View 1 chunk +1 line, -7 lines 0 comments Download
M media/cdm/proxy_decryptor.cc View 1 2 2 chunks +11 lines, -2 lines 1 comment Download
M media/test/data/eme_player_js/globals.js View 1 chunk +1 line, -0 lines 0 comments Download
M media/test/data/eme_player_js/player_utils.js View 2 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 13 (2 generated)
jrummell
PTAL. Can only land after https://codereview.chromium.org/1219753005/.
5 years, 5 months ago (2015-07-08 18:45:20 UTC) #2
ddorwin
https://codereview.chromium.org/1224053003/diff/1/media/cdm/proxy_decryptor.cc File media/cdm/proxy_decryptor.cc (right): https://codereview.chromium.org/1224053003/diff/1/media/cdm/proxy_decryptor.cc#newcode184 media/cdm/proxy_decryptor.cc:184: possible_session_id, promise.Pass()); This appears to be a change in ...
5 years, 5 months ago (2015-07-08 20:32:13 UTC) #3
jrummell
Comments only. https://codereview.chromium.org/1224053003/diff/1/media/cdm/proxy_decryptor.cc File media/cdm/proxy_decryptor.cc (right): https://codereview.chromium.org/1224053003/diff/1/media/cdm/proxy_decryptor.cc#newcode184 media/cdm/proxy_decryptor.cc:184: possible_session_id, promise.Pass()); On 2015/07/08 20:32:13, ddorwin wrote: ...
5 years, 5 months ago (2015-07-08 20:58:17 UTC) #4
ddorwin
https://codereview.chromium.org/1224053003/diff/1/media/cdm/proxy_decryptor.cc File media/cdm/proxy_decryptor.cc (right): https://codereview.chromium.org/1224053003/diff/1/media/cdm/proxy_decryptor.cc#newcode180 media/cdm/proxy_decryptor.cc:180: weak_ptr_factory_.GetWeakPtr(), possible_session_id))); Correction: _This_ appears to be a change ...
5 years, 5 months ago (2015-07-08 21:50:13 UTC) #5
jrummell
Updated. https://codereview.chromium.org/1224053003/diff/1/media/cdm/proxy_decryptor.cc File media/cdm/proxy_decryptor.cc (right): https://codereview.chromium.org/1224053003/diff/1/media/cdm/proxy_decryptor.cc#newcode180 media/cdm/proxy_decryptor.cc:180: weak_ptr_factory_.GetWeakPtr(), possible_session_id))); On 2015/07/08 21:50:13, ddorwin wrote: > ...
5 years, 5 months ago (2015-07-08 23:15:08 UTC) #6
ddorwin
In the description: * This is (External) Clear Key CDM, not Clear Key. * I ...
5 years, 5 months ago (2015-07-09 00:29:36 UTC) #7
jrummell
Updated. https://codereview.chromium.org/1224053003/diff/20001/media/cdm/proxy_decryptor.cc File media/cdm/proxy_decryptor.cc (right): https://codereview.chromium.org/1224053003/diff/20001/media/cdm/proxy_decryptor.cc#newcode395 media/cdm/proxy_decryptor.cc:395: // Load() returns empty |session_id| if the session ...
5 years, 5 months ago (2015-07-10 00:16:50 UTC) #8
ddorwin
lgtm % comment https://codereview.chromium.org/1224053003/diff/40001/media/cdm/proxy_decryptor.cc File media/cdm/proxy_decryptor.cc (right): https://codereview.chromium.org/1224053003/diff/40001/media/cdm/proxy_decryptor.cc#newcode399 media/cdm/proxy_decryptor.cc:399: "Incorrect session id specified for LoadSession()."); ...
5 years, 5 months ago (2015-07-10 00:35:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1224053003/40001
5 years, 5 months ago (2015-07-10 19:21:22 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-10 20:40:25 UTC) #12
commit-bot: I haz the power
5 years, 5 months ago (2015-07-10 20:41:32 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/14fae6f63de53924e602035d8344dca6b19adf66
Cr-Commit-Position: refs/heads/master@{#338347}

Powered by Google App Engine
This is Rietveld 408576698