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

Unified Diff: content/renderer/pepper/content_decryptor_delegate.cc

Issue 594673002: Remove incorrect promise resolving type handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/content_decryptor_delegate.cc
diff --git a/content/renderer/pepper/content_decryptor_delegate.cc b/content/renderer/pepper/content_decryptor_delegate.cc
index 64aa297ff5726d9f28c44d0c76c76cee5515a207..ac7d11628c379264b87855ff62725bbc360519d7 100644
--- a/content/renderer/pepper/content_decryptor_delegate.cc
+++ b/content/renderer/pepper/content_decryptor_delegate.cc
@@ -695,19 +695,6 @@ bool ContentDecryptorDelegate::DecryptAndDecodeVideo(
void ContentDecryptorDelegate::OnPromiseResolved(uint32 promise_id) {
scoped_ptr<CdmPromise> promise = TakePromise(promise_id);
-
- // Special case due to http://crbug.com/408330. CDM is resolving LoadSession()
- // with this method when the session is not found. Instead it should call
- // PromiseResolvedWithSession(""), so emulate that here until 408330 is fixed.
- // TODO(jrummell): Remove this code when the CDM is updated.
- if (promise &&
- promise->GetResolveParameterType() == media::CdmPromise::STRING_TYPE) {
- NewSessionCdmPromise* session_promise =
- static_cast<NewSessionCdmPromise*>(promise.get());
- session_promise->resolve(std::string());
- return;
- }
-
if (!promise ||
promise->GetResolveParameterType() != media::CdmPromise::VOID_TYPE) {
NOTREACHED();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698