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

Issue 497153005: ReleaseSession() should call RemoveSession() (Closed)

Created:
6 years, 4 months ago by jrummell
Modified:
6 years, 3 months ago
Reviewers:
xhwang, ddorwin
CC:
chromium-reviews, feature-media-reviews_chromium.org, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, raymes+watch_chromium.org, eme-reviews_chromium.org, teravest+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Changing the behavior of ReleaseSession() from Close() to Remove() With the recent EME spec changes, ReleaseSession() got replaced by CloseSession() and RemoveSession(). Until all the changes to support both methods are in place, calls to ReleaseSession() should call RemoveSession() in order for existing prefixed EME applications to continue to work. Unprefixed Close() calls now call RemoveSession(), and thus don't do the correct thing. This will be fixed when both CloseSession() and RemoveSession() are passed through Pepper. BUG=406606 TEST=All EME browser_tests pass Committed: https://crrev.com/ec6d38eaaacd81198e1a78dec84418b54b218e55 Cr-Commit-Position: refs/heads/master@{#291602}

Patch Set 1 #

Total comments: 15

Patch Set 2 : reorder #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -29 lines) Patch
M media/cdm/ppapi/cdm_adapter.h View 1 1 chunk +5 lines, -4 lines 0 comments Download
M media/cdm/ppapi/cdm_adapter.cc View 1 1 chunk +9 lines, -9 lines 0 comments Download
M media/cdm/ppapi/cdm_wrapper.h View 1 4 chunks +18 lines, -16 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jrummell
PTAL.
6 years, 4 months ago (2014-08-22 23:47:57 UTC) #1
ddorwin
The CL description should probably mention that unprefixed EME's close() will have the wrong behavior. ...
6 years, 4 months ago (2014-08-22 23:59:44 UTC) #2
xhwang
https://codereview.chromium.org/497153005/diff/1/media/cdm/ppapi/cdm_adapter.h File media/cdm/ppapi/cdm_adapter.h (right): https://codereview.chromium.org/497153005/diff/1/media/cdm/ppapi/cdm_adapter.h#newcode72 media/cdm/ppapi/cdm_adapter.h:72: const std::string& web_session_id) OVERRIDE; Will we also remove this ...
6 years, 4 months ago (2014-08-23 00:01:49 UTC) #3
ddorwin
LGTM once xhwang's comments are resolved. https://codereview.chromium.org/497153005/diff/1/media/cdm/ppapi/cdm_adapter.cc File media/cdm/ppapi/cdm_adapter.cc (right): https://codereview.chromium.org/497153005/diff/1/media/cdm/ppapi/cdm_adapter.cc#newcode388 media/cdm/ppapi/cdm_adapter.cc:388: cdm_->RemoveSession( On 2014/08/22 ...
6 years, 4 months ago (2014-08-23 00:14:31 UTC) #4
jrummell
Updated. https://codereview.chromium.org/497153005/diff/1/media/cdm/ppapi/cdm_adapter.cc File media/cdm/ppapi/cdm_adapter.cc (right): https://codereview.chromium.org/497153005/diff/1/media/cdm/ppapi/cdm_adapter.cc#newcode388 media/cdm/ppapi/cdm_adapter.cc:388: cdm_->RemoveSession( On 2014/08/23 00:14:30, ddorwin wrote: > On ...
6 years, 4 months ago (2014-08-23 00:27:16 UTC) #5
ddorwin
Please update the first line to say we are changing the behavior of ReleaseSession from ...
6 years, 4 months ago (2014-08-23 00:33:57 UTC) #6
xhwang
In the CL description, "Unprefixed Close()" should be "Unprefixed cancelKeyRequest()"? otherwise, lgtm!
6 years, 4 months ago (2014-08-23 00:44:01 UTC) #7
jrummell
The CQ bit was checked by jrummell@chromium.org
6 years, 4 months ago (2014-08-23 00:47:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/497153005/20001
6 years, 4 months ago (2014-08-23 04:56:25 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (20001) as 26432cb887b4ce8dade42601352a0e7377a00f50
6 years, 4 months ago (2014-08-23 22:09:32 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:31:50 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ec6d38eaaacd81198e1a78dec84418b54b218e55
Cr-Commit-Position: refs/heads/master@{#291602}

Powered by Google App Engine
This is Rietveld 408576698