Index: media/blink/encrypted_media_player_support.cc |
diff --git a/media/blink/encrypted_media_player_support.cc b/media/blink/encrypted_media_player_support.cc |
index 01422e5a2ac8e9793c27276cbe7ad3391fa2e36e..920bfc94d224f40ccf7444e85d6661de15728f3b 100644 |
--- a/media/blink/encrypted_media_player_support.cc |
+++ b/media/blink/encrypted_media_player_support.cc |
@@ -115,9 +115,11 @@ static std::string GuessInitDataType(const unsigned char* init_data, |
EncryptedMediaPlayerSupport::EncryptedMediaPlayerSupport( |
scoped_ptr<CdmFactory> cdm_factory, |
blink::WebMediaPlayerClient* client, |
+ MediaPermission* media_permission, |
const SetCdmContextCB& set_cdm_context_cb) |
: cdm_factory_(cdm_factory.Pass()), |
client_(client), |
+ media_permission_(media_permission), |
set_cdm_context_cb_(set_cdm_context_cb) { |
} |
@@ -156,6 +158,7 @@ EncryptedMediaPlayerSupport::GenerateKeyRequestInternal( |
if (current_key_system_.empty()) { |
if (!proxy_decryptor_) { |
proxy_decryptor_.reset(new ProxyDecryptor( |
+ media_permission_, |
BIND_TO_RENDER_LOOP(&EncryptedMediaPlayerSupport::OnKeyAdded), |
BIND_TO_RENDER_LOOP(&EncryptedMediaPlayerSupport::OnKeyError), |
BIND_TO_RENDER_LOOP(&EncryptedMediaPlayerSupport::OnKeyMessage))); |