Chromium Code Reviews
DescriptionFix 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 #
Messages
Total messages: 27 (20 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||