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

Issue 10896014: Add a bool return value to media::Decryptor::GenerateKeyRequest(). (Closed)

Created:
8 years, 3 months ago by xhwang
Modified:
8 years, 3 months ago
Reviewers:
ddorwin
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Add a bool return value to media::Decryptor::GenerateKeyRequest(). Add a bool return value in media::Decryptor::GenerateKeyRequest() call and add code in WebMeidaPlayerImpl to check this value. If GenerateKeyRequest() fails, prevent further calls to AddKey() and CancelKeyRequest(). BUG=145322 TEST=Called AddKey() after GenerateKeyRequest() fails and no crash. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153818

Patch Set 1 #

Patch Set 2 : Fix logging typo. #

Total comments: 1

Patch Set 3 : Resolve comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -16 lines) Patch
M media/base/decryptor.h View 1 chunk +4 lines, -1 line 0 comments Download
M media/base/mock_filters.h View 1 chunk +1 line, -1 line 0 comments Download
M media/crypto/aes_decryptor.h View 1 chunk +1 line, -1 line 0 comments Download
M media/crypto/aes_decryptor.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/crypto/aes_decryptor_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/filters/pipeline_integration_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/media/crypto/ppapi_decryptor.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/media/crypto/ppapi_decryptor.cc View 2 chunks +4 lines, -1 line 0 comments Download
M webkit/media/crypto/proxy_decryptor.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/media/crypto/proxy_decryptor.cc View 1 2 3 chunks +9 lines, -4 lines 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
xhwang
Hello ddorwin, This is the fix to the bug you found :) PTAL! xhwang
8 years, 3 months ago (2012-08-28 21:41:46 UTC) #1
ddorwin
LG except one corner case. http://codereview.chromium.org/10896014/diff/2001/webkit/media/crypto/proxy_decryptor.cc File webkit/media/crypto/proxy_decryptor.cc (right): http://codereview.chromium.org/10896014/diff/2001/webkit/media/crypto/proxy_decryptor.cc#newcode91 webkit/media/crypto/proxy_decryptor.cc:91: return decryptor_->GenerateKeyRequest(key_system, For the ...
8 years, 3 months ago (2012-08-28 21:59:14 UTC) #2
xhwang
8 years, 3 months ago (2012-08-28 22:18:27 UTC) #3
ddorwin
lgtm
8 years, 3 months ago (2012-08-28 22:35:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10896014/3012
8 years, 3 months ago (2012-08-28 22:45:42 UTC) #5
commit-bot: I haz the power
8 years, 3 months ago (2012-08-29 01:14:41 UTC) #6
Change committed as 153818

Powered by Google App Engine
This is Rietveld 408576698