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

Unified Diff: media/cdm/ppapi/cdm_adapter.cc

Issue 497153005: ReleaseSession() should call RemoveSession() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/cdm_adapter.cc
diff --git a/media/cdm/ppapi/cdm_adapter.cc b/media/cdm/ppapi/cdm_adapter.cc
index a54ab390c226f5578eca1ad0b5747d99a0a85548..092566b25ce61a2281815befcbc6d4962607b8fc 100644
--- a/media/cdm/ppapi/cdm_adapter.cc
+++ b/media/cdm/ppapi/cdm_adapter.cc
@@ -385,13 +385,13 @@ void CdmAdapter::UpdateSession(uint32_t promise_id,
void CdmAdapter::ReleaseSession(uint32_t promise_id,
const std::string& web_session_id) {
- cdm_->CloseSession(
+ cdm_->RemoveSession(
ddorwin 2014/08/22 23:59:44 This CL makes a bunch of changes we'll want to und
ddorwin 2014/08/23 00:14:30 As discussed, even after piping everything through
jrummell 2014/08/23 00:27:15 Description updated.
promise_id, web_session_id.data(), web_session_id.length());
}
-void CdmAdapter::RemoveSession(uint32_t promise_id,
- const std::string& web_session_id) {
- if (!cdm_->RemoveSession(
+void CdmAdapter::CloseSession(uint32_t promise_id,
+ const std::string& web_session_id) {
+ if (!cdm_->CloseSession(
promise_id, web_session_id.data(), web_session_id.length())) {
// CDM_4 and CDM_5 don't support this method, so reject the promise.
RejectPromise(promise_id, cdm::kNotSupportedError, 0, "Not implemented.");

Powered by Google App Engine
This is Rietveld 408576698