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

Issue 2773283002: media: Simplify CdmHostFile(s) (Closed)

Created:
3 years, 9 months ago by xhwang
Modified:
3 years, 8 months ago
CC:
chromium-reviews, chfremer+watch_chromium.org, eme-reviews_chromium.org, jam, darin-cc_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Simplify CdmHostFile(s) Today if any files are missing we close files immediately. This resulted in many complicated logic and requires a special command-line switch for testing. This CL simplifies the implementation by not treating missing files specially. When a file or a sig file is missing, an invalid file descriptor (e.g. -1 on posix) will be passed to the CDM. The CDM already has logic to deal with this case. This will also be useful in the future when we explore other ways to verify CDM host files. BUG=694707 TEST=Updated browser test. Review-Url: https://codereview.chromium.org/2773283002 Cr-Commit-Position: refs/heads/master@{#461193} Committed: https://chromium.googlesource.com/chromium/src/+/e23c1b6375d994f06ed745805ba3847e8218cdba

Patch Set 1 #

Patch Set 2 : media: Simplify CdmHostFile(s) #

Patch Set 3 : media: Simplify CdmHostFile(s) #

Total comments: 4

Patch Set 4 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -140 lines) Patch
M chrome/browser/media/encrypted_media_browsertest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M content/browser/zygote_host/zygote_communication_linux.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M content/common/media/cdm_host_file.cc View 2 chunks +6 lines, -27 lines 0 comments Download
M content/common/media/cdm_host_files.h View 1 1 chunk +7 lines, -11 lines 0 comments Download
M content/common/media/cdm_host_files.cc View 1 7 chunks +32 lines, -83 lines 0 comments Download
M media/base/media_switches.h View 1 chunk +0 lines, -2 lines 0 comments Download
M media/base/media_switches.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M media/cdm/ppapi/external_clear_key/clear_key_cdm.cc View 1 2 3 2 chunks +22 lines, -4 lines 0 comments Download

Messages

Total messages: 37 (24 generated)
xhwang
hmchen: PTAL
3 years, 9 months ago (2017-03-27 17:47:58 UTC) #15
xhwang
hmchen: kindly ping! kerrnel: Please also take a look!
3 years, 8 months ago (2017-03-30 23:58:57 UTC) #17
Greg K
On 2017/03/30 23:58:57, xhwang_slow wrote: > hmchen: kindly ping! > kerrnel: Please also take a ...
3 years, 8 months ago (2017-03-31 14:49:55 UTC) #18
xhwang
On 2017/03/31 14:49:55, Greg K wrote: > On 2017/03/30 23:58:57, xhwang_slow wrote: > > hmchen: ...
3 years, 8 months ago (2017-03-31 16:26:51 UTC) #20
Haoming Chen
LGTM % nit https://codereview.chromium.org/2773283002/diff/40001/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc File media/cdm/ppapi/external_clear_key/clear_key_cdm.cc (right): https://codereview.chromium.org/2773283002/diff/40001/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc#newcode280 media/cdm/ppapi/external_clear_key/clear_key_cdm.cc:280: if (num_files < 3) { nit: ...
3 years, 8 months ago (2017-03-31 16:46:54 UTC) #21
Greg K
On 2017/03/31 16:46:54, hmchen wrote: > LGTM % nit > > https://codereview.chromium.org/2773283002/diff/40001/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc > File media/cdm/ppapi/external_clear_key/clear_key_cdm.cc ...
3 years, 8 months ago (2017-03-31 17:22:31 UTC) #22
xhwang
comments addressed
3 years, 8 months ago (2017-03-31 18:05:19 UTC) #23
xhwang
https://codereview.chromium.org/2773283002/diff/40001/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc File media/cdm/ppapi/external_clear_key/clear_key_cdm.cc (right): https://codereview.chromium.org/2773283002/diff/40001/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc#newcode280 media/cdm/ppapi/external_clear_key/clear_key_cdm.cc:280: if (num_files < 3) { On 2017/03/31 16:46:53, hmchen ...
3 years, 8 months ago (2017-03-31 18:05:37 UTC) #24
xhwang
alexmos@chromium.org: Please OWNERS review trivial changes in content/browser/ppapi_plugin_process_host.cc content/browser/zygote_host/zygote_communication_linux.cc
3 years, 8 months ago (2017-03-31 18:07:07 UTC) #26
alexmos
LGTM
3 years, 8 months ago (2017-03-31 18:13:30 UTC) #29
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/2773283002/60001
3 years, 8 months ago (2017-03-31 18:52:29 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/e23c1b6375d994f06ed745805ba3847e8218cdba
3 years, 8 months ago (2017-03-31 20:00:04 UTC) #36
xhwang
3 years, 8 months ago (2017-04-05 22:24:42 UTC) #37
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://chromiumcodereview.appspot.com/2802853002/ by xhwang@chromium.org.

The reason for reverting is: This issue is in the blame list of issue 708410.
Though I don't really see how this could cause that failure, we decided to
revert this for now to rule out possibilities. If we confirmed this is not the
cause I'll reland it.

BUG=708410.

Powered by Google App Engine
This is Rietveld 408576698