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

Unified Diff: media/blink/cdm_session_adapter.cc

Issue 2402563002: Keep reference to CDM to avoid it's premature destruction (Closed)
Patch Set: nits Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/blink/cdm_session_adapter.h ('k') | media/blink/webcontentdecryptionmodule_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/cdm_session_adapter.cc
diff --git a/media/blink/cdm_session_adapter.cc b/media/blink/cdm_session_adapter.cc
index fa5ee065719bb1aa533a3adbf7a31e4006b7696e..97d3f7aefef56af1b7acdbee575df7d6ac94e52d 100644
--- a/media/blink/cdm_session_adapter.cc
+++ b/media/blink/cdm_session_adapter.cc
@@ -123,8 +123,8 @@ void CdmSessionAdapter::RemoveSession(
cdm_->RemoveSession(session_id, std::move(promise));
}
-CdmContext* CdmSessionAdapter::GetCdmContext() {
- return cdm_->GetCdmContext();
+scoped_refptr<MediaKeys> CdmSessionAdapter::GetCdm() {
+ return cdm_;
}
const std::string& CdmSessionAdapter::GetKeySystem() const {
« no previous file with comments | « media/blink/cdm_session_adapter.h ('k') | media/blink/webcontentdecryptionmodule_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698