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

Issue 2655413003: Fix expiry time conversion in ContentDecryptorDelegate (Closed)

Created:
3 years, 10 months ago by xhwang
Modified:
3 years, 10 months ago
Reviewers:
jrummell, bbudge
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org, eme-reviews_chromium.org, ddorwin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix expiry time conversion in ContentDecryptorDelegate Currently we use PPTimeToTime to convert PP_Time (double) to base::Time. In PPTimeToTime, 0.0 is converted to base::Time::UnixEpoch() instead of base::Time(), which is a "null" Time. Now with https://chromiumcodereview.appspot.com/2650033007/, only null base::Time will be converted to NaN in JavaScript. Therefore, a PP_Time of 0.0 will be converted to Epoch in JS, which is wrong. This CL update the code in ContentDecryptorDelegate such that PP_Time 0.0 will be converted to null base::Time. BUG=679079 TEST=Updated browser and unit test to cover this. Review-Url: https://codereview.chromium.org/2655413003 Cr-Commit-Position: refs/heads/master@{#447162} Committed: https://chromium.googlesource.com/chromium/src/+/c54be1be4832bb10b83d43078ccb804cdddbbd14

Patch Set 1 #

Patch Set 2 : Fix expiry time conversion in ContentDecryptorDelegate #

Patch Set 3 : Fix expiry time conversion in ContentDecryptorDelegate #

Patch Set 4 : Fix expiry time conversion in ContentDecryptorDelegate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -6 lines) Patch
M content/renderer/pepper/content_decryptor_delegate.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M media/cdm/aes_decryptor_unittest.cc View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M media/cdm/cdm_adapter_unittest.cc View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M media/cdm/ppapi/external_clear_key/clear_key_cdm.cc View 1 2 1 chunk +16 lines, -3 lines 0 comments Download
M media/test/data/eme_player_js/clearkey_player.js View 1 1 chunk +28 lines, -1 line 0 comments Download

Messages

Total messages: 27 (20 generated)
xhwang
More expiry time fix ;) jrummell: PTAL ddorwin: FYI
3 years, 10 months ago (2017-01-27 17:59:39 UTC) #10
jrummell
lgtm
3 years, 10 months ago (2017-01-27 20:40:23 UTC) #16
xhwang
bbudge@chromium.org: Please review changes in content/renderer/pepper/content_decryptor_delegate.cc Time conversion is a mess now, please see BUG ...
3 years, 10 months ago (2017-01-27 20:42:23 UTC) #18
xhwang
bbudge: kindly ping :)
3 years, 10 months ago (2017-01-30 17:49:57 UTC) #21
bbudge
content/renderer/pepper lgtm
3 years, 10 months ago (2017-01-30 23:41:37 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2655413003/60001
3 years, 10 months ago (2017-01-30 23:43:29 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 02:12:27 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c54be1be4832bb10b83d43078ccb...

Powered by Google App Engine
This is Rietveld 408576698