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

Unified Diff: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc

Issue 1224053003: Clear Key CDM should resolve the promise if session not found (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes Created 5 years, 5 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
Index: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
diff --git a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
index 6087dcc6d6b7915e028114f02754bc181c37e566..a1f67079aada4b6d04ab8511c160807d6069e0be 100644
--- a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
+++ b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
@@ -330,13 +330,7 @@ void ClearKeyCdm::LoadSession(uint32 promise_id,
if (std::string(kLoadableSessionId) !=
std::string(session_id, session_id_length)) {
- // TODO(jrummell): This should be resolved with undefined, not rejected.
- std::string message("Incorrect session id specified for LoadSession().");
- host_->OnRejectPromise(promise_id,
- cdm::kInvalidAccessError,
- 0,
- message.data(),
- message.length());
+ host_->OnResolveNewSessionPromise(promise_id, nullptr, 0);
return;
}

Powered by Google App Engine
This is Rietveld 408576698