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

Issue 2650033007: media: Fix expiry time convertion from base::Time to JS time (Closed)

Created:
3 years, 11 months ago by xhwang
Modified:
3 years, 11 months ago
Reviewers:
jrummell, majidvp
CC:
chromium-reviews, feature-media-reviews_chromium.org, miu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Fix expiry time convertion from base::Time to JS time This is broken by https://codereview.chromium.org/2593073002/ where the behavior of converting a null base::Time to JS time (double) has been changed. We are discussing how to fix the base::Time API more properly. For now, this check should work. BUG=679079 TEST=Manually tested. I'll add auto tests later. Review-Url: https://codereview.chromium.org/2650033007 Cr-Commit-Position: refs/heads/master@{#446246} Committed: https://chromium.googlesource.com/chromium/src/+/d81adccb0dd24dd7c47ad0d3400dd745150e76db

Patch Set 1 #

Total comments: 2

Patch Set 2 : media: Fix expiry time convertion from base::Time to JS time #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M media/blink/webcontentdecryptionmodulesession_impl.cc View 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp View 1 1 chunk +1 line, -3 lines 7 comments Download

Messages

Total messages: 23 (11 generated)
xhwang
PTAL!
3 years, 11 months ago (2017-01-25 18:00:07 UTC) #2
xhwang
miu: FYI
3 years, 11 months ago (2017-01-25 18:00:35 UTC) #4
majidvp
https://codereview.chromium.org/2650033007/diff/1/media/blink/webcontentdecryptionmodulesession_impl.cc File media/blink/webcontentdecryptionmodulesession_impl.cc (right): https://codereview.chromium.org/2650033007/diff/1/media/blink/webcontentdecryptionmodulesession_impl.cc#newcode501 media/blink/webcontentdecryptionmodulesession_impl.cc:501: : new_expiry_time.ToJsTime()); This seems to duplicate some of the ...
3 years, 11 months ago (2017-01-25 18:53:28 UTC) #7
xhwang
PTAL again! https://codereview.chromium.org/2650033007/diff/1/media/blink/webcontentdecryptionmodulesession_impl.cc File media/blink/webcontentdecryptionmodulesession_impl.cc (right): https://codereview.chromium.org/2650033007/diff/1/media/blink/webcontentdecryptionmodulesession_impl.cc#newcode501 media/blink/webcontentdecryptionmodulesession_impl.cc:501: : new_expiry_time.ToJsTime()); On 2017/01/25 18:53:28, majidvp wrote: ...
3 years, 11 months ago (2017-01-25 19:24:41 UTC) #9
majidvp
lgtm with nits. :) > https://codereview.chromium.org/2650033007/diff/1/media/blink/webcontentdecryptionmodulesession_impl.cc#newcode501 > media/blink/webcontentdecryptionmodulesession_impl.cc:501: : > new_expiry_time.ToJsTime()); > On 2017/01/25 18:53:28, ...
3 years, 11 months ago (2017-01-25 22:28:51 UTC) #13
majidvp
https://codereview.chromium.org/2650033007/diff/20001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2650033007/diff/20001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode946 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:946: void MediaKeySession::expirationChanged(double updatedExpiryTimeInMS) { nit: Please update the function ...
3 years, 11 months ago (2017-01-25 22:29:02 UTC) #14
xhwang
https://codereview.chromium.org/2650033007/diff/20001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2650033007/diff/20001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode946 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:946: void MediaKeySession::expirationChanged(double updatedExpiryTimeInMS) { On 2017/01/25 22:29:02, majidvp wrote: ...
3 years, 11 months ago (2017-01-25 22:34:06 UTC) #15
jrummell
lgtm
3 years, 11 months ago (2017-01-25 22:41:03 UTC) #16
majidvp
https://codereview.chromium.org/2650033007/diff/20001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2650033007/diff/20001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode946 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:946: void MediaKeySession::expirationChanged(double updatedExpiryTimeInMS) { On 2017/01/25 22:34:06, xhwang_slow wrote: ...
3 years, 11 months ago (2017-01-25 22:49:02 UTC) #17
xhwang
https://codereview.chromium.org/2650033007/diff/20001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2650033007/diff/20001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode954 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:954: double expirationTime = std::numeric_limits<double>::quiet_NaN(); On 2017/01/25 22:49:02, majidvp wrote: ...
3 years, 11 months ago (2017-01-25 23:22:39 UTC) #18
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/2650033007/20001
3 years, 11 months ago (2017-01-26 06:00:49 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-26 06:06:20 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d81adccb0dd24dd7c47ad0d3400d...

Powered by Google App Engine
This is Rietveld 408576698