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

Issue 2561263002: [eme] Reject CDM calls after connection error (Closed)

Created:
4 years ago by jrummell
Modified:
4 years ago
Reviewers:
xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, alokp+watch_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[eme] Reject CDM calls after connection error Once the mojo connection is broken, all subsequent calls to the CDM should fail. BUG=671362 TEST=new tests pass Committed: https://crrev.com/8ef30a35f16fe89ee4b4f8d9ea15d5bbcf7dc9cf Cr-Commit-Position: refs/heads/master@{#439032}

Patch Set 1 #

Total comments: 20

Patch Set 2 : changes #

Total comments: 10

Patch Set 3 : improved mock promises #

Total comments: 2

Patch Set 4 : nit (+rebase for MediaKeys rename) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -16 lines) Patch
M media/base/mock_filters.h View 1 2 3 2 chunks +32 lines, -0 lines 0 comments Download
M media/base/mock_filters.cc View 1 2 2 chunks +36 lines, -2 lines 0 comments Download
M media/mojo/clients/mojo_cdm.cc View 1 2 7 chunks +38 lines, -2 lines 0 comments Download
M media/mojo/clients/mojo_cdm_unittest.cc View 1 2 3 7 chunks +109 lines, -12 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
jrummell
PTAL.
4 years ago (2016-12-09 01:28:43 UTC) #2
xhwang
https://codereview.chromium.org/2561263002/diff/1/media/mojo/clients/mojo_cdm.cc File media/mojo/clients/mojo_cdm.cc (right): https://codereview.chromium.org/2561263002/diff/1/media/mojo/clients/mojo_cdm.cc#newcode153 media/mojo/clients/mojo_cdm.cc:153: if (!remote_cdm_.is_bound()) { will this work? if (!remote_cdm_) { ...
4 years ago (2016-12-09 06:13:30 UTC) #3
jrummell
Updated. https://codereview.chromium.org/2561263002/diff/1/media/mojo/clients/mojo_cdm.cc File media/mojo/clients/mojo_cdm.cc (right): https://codereview.chromium.org/2561263002/diff/1/media/mojo/clients/mojo_cdm.cc#newcode153 media/mojo/clients/mojo_cdm.cc:153: if (!remote_cdm_.is_bound()) { On 2016/12/09 06:13:30, xhwang wrote: ...
4 years ago (2016-12-13 20:57:35 UTC) #4
xhwang
This looks much better. I just have a few more comments. https://codereview.chromium.org/2561263002/diff/20001/media/base/mock_filters.h File media/base/mock_filters.h (right): ...
4 years ago (2016-12-14 18:43:54 UTC) #5
jrummell
Updated. https://codereview.chromium.org/2561263002/diff/20001/media/base/mock_filters.h File media/base/mock_filters.h (right): https://codereview.chromium.org/2561263002/diff/20001/media/base/mock_filters.h#newcode441 media/base/mock_filters.h:441: class MockCdmPromise : public SimpleCdmPromise { On 2016/12/14 ...
4 years ago (2016-12-15 21:53:56 UTC) #6
xhwang
Thanks! LGTM % nit https://codereview.chromium.org/2561263002/diff/40001/media/mojo/clients/mojo_cdm_unittest.cc File media/mojo/clients/mojo_cdm_unittest.cc (right): https://codereview.chromium.org/2561263002/diff/40001/media/mojo/clients/mojo_cdm_unittest.cc#newcode182 media/mojo/clients/mojo_cdm_unittest.cc:182: Initialize("org.random.cdm", FAILURE); Please add a ...
4 years ago (2016-12-16 01:21:13 UTC) #7
jrummell
Updated. https://codereview.chromium.org/2561263002/diff/40001/media/mojo/clients/mojo_cdm_unittest.cc File media/mojo/clients/mojo_cdm_unittest.cc (right): https://codereview.chromium.org/2561263002/diff/40001/media/mojo/clients/mojo_cdm_unittest.cc#newcode182 media/mojo/clients/mojo_cdm_unittest.cc:182: Initialize("org.random.cdm", FAILURE); On 2016/12/16 01:21:13, xhwang wrote: > ...
4 years ago (2016-12-16 02:32:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2561263002/60001
4 years ago (2016-12-16 02:34:34 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-16 05:20:32 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-16 05:22:53 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8ef30a35f16fe89ee4b4f8d9ea15d5bbcf7dc9cf
Cr-Commit-Position: refs/heads/master@{#439032}

Powered by Google App Engine
This is Rietveld 408576698