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

Unified Diff: media/mojo/services/mojo_cdm_service.cc

Issue 2752653002: Change MojoDecryptorService to take a Decryptor (Closed)
Patch Set: comments updated Created 3 years, 9 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/mojo/services/mojo_cdm_service.h ('k') | media/mojo/services/mojo_decryptor_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_cdm_service.cc
diff --git a/media/mojo/services/mojo_cdm_service.cc b/media/mojo/services/mojo_cdm_service.cc
index 76569fa1c06a397a23413ed738a9b40e2f1f0081..6234e80cb26e1d3e18d6cef80a45c9750b9495f7 100644
--- a/media/mojo/services/mojo_cdm_service.cc
+++ b/media/mojo/services/mojo_cdm_service.cc
@@ -203,10 +203,8 @@ void MojoCdmService::OnCdmCreated(
mojom::DecryptorPtr decryptor_service;
CdmContext* const cdm_context = cdm_->GetCdmContext();
if (cdm_context && cdm_context->GetDecryptor()) {
- // MojoDecryptorService takes a reference to the CDM, but it is still owned
- // by |this|.
decryptor_.reset(new MojoDecryptorService(
- cdm_, MakeRequest(&decryptor_service),
+ cdm_context->GetDecryptor(), MakeRequest(&decryptor_service),
base::Bind(&MojoCdmService::OnDecryptorConnectionError, weak_this_)));
}
« no previous file with comments | « media/mojo/services/mojo_cdm_service.h ('k') | media/mojo/services/mojo_decryptor_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698