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

Issue 1957643002: media: Move widevine CDM targets to WidevineCdm folder (Closed)

Created:
4 years, 7 months ago by xhwang
Modified:
4 years, 7 months ago
CC:
chromium-reviews, eme-reviews_chromium.org, feature-media-reviews_chromium.org, grt+watch_chromium.org, markusheintz_, mcasas+watch+vc_chromium.org, Michael Moss, msramek+watch_chromium.org, oshima+watch_chromium.org, posciak+watch_chromium.org, raymes+watch_chromium.org, waffles, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Move widevine CDM targets to WidevineCdm folder Put Widevine CDM and adapter in WidevineCdm folder in the output directory instead of in the output directory directly. This will make it easier for us to ship manifest.json file alongside with the CDM. It will also make it easier for use to bundle the CDM on Windows and Mac. BUG=582622 TEST=Unit tests still pass. Manually tested on Linux. Committed: https://crrev.com/3569f3d0f45b847990522f1655fb324c55dca887 Cr-Commit-Position: refs/heads/master@{#393672}

Patch Set 1 #

Patch Set 2 : Also update stub cdm. #

Total comments: 8

Patch Set 3 : comments addressed #

Total comments: 2

Patch Set 4 : various fixes on ECK #

Patch Set 5 : fix linux installer #

Patch Set 6 : more fix #

Total comments: 12

Patch Set 7 : rebase + fix, sorry for the rebase noise #

Patch Set 8 : comments #

Patch Set 9 : @loader_path/. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -119 lines) Patch
M chrome/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/content_settings/content_settings_browsertest.cc View 1 2 3 4 2 chunks +14 lines, -9 lines 0 comments Download
M chrome/browser/load_library_perf_test.cc View 1 2 3 2 chunks +26 lines, -25 lines 0 comments Download
M chrome/browser/media/encrypted_media_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/media/encrypted_media_supported_types_browsertest.cc View 1 2 3 4 5 6 7 7 chunks +29 lines, -22 lines 2 comments Download
M chrome/browser_tests.isolate View 1 2 3 4 5 6 7 6 chunks +12 lines, -12 lines 0 comments Download
M chrome/chrome_dll_bundle.gypi View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/chrome_installer.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/chrome_paths.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/installer/linux/BUILD.gn View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/installer/linux/common/installer.include View 1 2 3 4 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/installer/mini_installer/chrome.release View 1 chunk +1 line, -1 line 0 comments Download
M chrome/tools/build/chromeos/FILES.cfg View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/tools/build/linux/FILES.cfg View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/tools/build/win/FILES.cfg View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M media/cdm/external_clear_key_test_helper.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M media/cdm/ppapi/BUILD.gn View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M media/media_cdm.gypi View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -2 lines 0 comments Download
M third_party/widevine/cdm/BUILD.gn View 1 2 3 4 5 6 7 4 chunks +9 lines, -7 lines 2 comments Download
M third_party/widevine/cdm/widevine_cdm.gyp View 1 3 4 chunks +8 lines, -7 lines 0 comments Download
M third_party/widevine/cdm/widevine_cdm_common.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (22 generated)
xhwang
CCing waffles@. This CL only change the current folder structure and is not adding manifest.json ...
4 years, 7 months ago (2016-05-06 16:53:10 UTC) #3
ddorwin
LGTM % comments. https://chromiumcodereview.appspot.com/1957643002/diff/20001/chrome/BUILD.gn File chrome/BUILD.gn (right): https://chromiumcodereview.appspot.com/1957643002/diff/20001/chrome/BUILD.gn#newcode228 chrome/BUILD.gn:228: data_deps += [ "//third_party/widevine/cdm:widevinecdmadapter" ] What ...
4 years, 7 months ago (2016-05-06 22:23:48 UTC) #4
xhwang
comments addressed
4 years, 7 months ago (2016-05-09 20:58:27 UTC) #5
xhwang
https://chromiumcodereview.appspot.com/1957643002/diff/20001/chrome/BUILD.gn File chrome/BUILD.gn (right): https://chromiumcodereview.appspot.com/1957643002/diff/20001/chrome/BUILD.gn#newcode228 chrome/BUILD.gn:228: data_deps += [ "//third_party/widevine/cdm:widevinecdmadapter" ] On 2016/05/06 22:23:48, ddorwin ...
4 years, 7 months ago (2016-05-09 20:59:03 UTC) #6
ddorwin
LGTM with comment and question. https://chromiumcodereview.appspot.com/1957643002/diff/20001/chrome/BUILD.gn File chrome/BUILD.gn (right): https://chromiumcodereview.appspot.com/1957643002/diff/20001/chrome/BUILD.gn#newcode228 chrome/BUILD.gn:228: data_deps += [ "//third_party/widevine/cdm:widevinecdmadapter" ...
4 years, 7 months ago (2016-05-09 23:12:56 UTC) #7
xhwang
Comments only. I'll upload a new PS shortly. https://chromiumcodereview.appspot.com/1957643002/diff/20001/chrome/BUILD.gn File chrome/BUILD.gn (right): https://chromiumcodereview.appspot.com/1957643002/diff/20001/chrome/BUILD.gn#newcode228 chrome/BUILD.gn:228: data_deps ...
4 years, 7 months ago (2016-05-09 23:50:05 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957643002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957643002/120001
4 years, 7 months ago (2016-05-10 07:22:19 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/224845)
4 years, 7 months ago (2016-05-10 08:47:30 UTC) #15
xhwang
4 years, 7 months ago (2016-05-12 07:33:20 UTC) #17
xhwang
4 years, 7 months ago (2016-05-12 07:40:43 UTC) #19
xhwang
thestig: Please OWNERS review chrome/ changes. Let me know if I should find different OWNERS ...
4 years, 7 months ago (2016-05-12 07:48:34 UTC) #21
Lei Zhang
Is "WidevinceCdm" a thing or a typo?
4 years, 7 months ago (2016-05-12 16:56:58 UTC) #22
xhwang
On 2016/05/12 16:56:58, Lei Zhang wrote: > Is "WidevinceCdm" a thing or a typo? Good ...
4 years, 7 months ago (2016-05-12 17:00:39 UTC) #24
Lei Zhang
https://chromiumcodereview.appspot.com/1957643002/diff/160001/chrome/browser/media/encrypted_media_browsertest.cc File chrome/browser/media/encrypted_media_browsertest.cc (right): https://chromiumcodereview.appspot.com/1957643002/diff/160001/chrome/browser/media/encrypted_media_browsertest.cc#newcode281 chrome/browser/media/encrypted_media_browsertest.cc:281: // The CDM adatper should be located in |adapter_base_dir| ...
4 years, 7 months ago (2016-05-12 17:22:03 UTC) #25
Robert Sesek
The failures on mac_chromium_rel_ng are legitimate, so I don't think this change is ready yet.
4 years, 7 months ago (2016-05-12 20:13:21 UTC) #27
ddorwin
https://chromiumcodereview.appspot.com/1957643002/diff/160001/chrome/browser/media/encrypted_media_supported_types_browsertest.cc File chrome/browser/media/encrypted_media_supported_types_browsertest.cc (right): https://chromiumcodereview.appspot.com/1957643002/diff/160001/chrome/browser/media/encrypted_media_supported_types_browsertest.cc#newcode313 chrome/browser/media/encrypted_media_supported_types_browsertest.cc:313: // but not the other codecs we expect. http://crbug.com/586634 ...
4 years, 7 months ago (2016-05-12 20:59:53 UTC) #28
xhwang
On 2016/05/12 20:13:21, Robert Sesek wrote: > The failures on mac_chromium_rel_ng are legitimate, so I ...
4 years, 7 months ago (2016-05-12 21:14:14 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957643002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957643002/180001
4 years, 7 months ago (2016-05-13 02:43:42 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/227005)
4 years, 7 months ago (2016-05-13 04:20:57 UTC) #33
xhwang
I addressed all existing comments. The browser_tests is timing out on mac_chromium_rel_ng. Locally I can ...
4 years, 7 months ago (2016-05-13 16:44:12 UTC) #34
xhwang
For the record: The previous failure on mac_chromium_rel_ng seems to be a bot issue according ...
4 years, 7 months ago (2016-05-13 18:13:52 UTC) #35
Lei Zhang
lgtm https://chromiumcodereview.appspot.com/1957643002/diff/160001/chrome/browser_tests.isolate File chrome/browser_tests.isolate (right): https://chromiumcodereview.appspot.com/1957643002/diff/160001/chrome/browser_tests.isolate#newcode208 chrome/browser_tests.isolate:208: '<(PRODUCT_DIR)/ClearKeyCdm/clearkeycdm.dll', On 2016/05/13 16:44:12, xhwang wrote: > On ...
4 years, 7 months ago (2016-05-13 20:24:56 UTC) #36
xhwang
rsesek: Please take a look at mac changes. Thanks! https://chromiumcodereview.appspot.com/1957643002/diff/160001/chrome/browser_tests.isolate File chrome/browser_tests.isolate (right): https://chromiumcodereview.appspot.com/1957643002/diff/160001/chrome/browser_tests.isolate#newcode208 chrome/browser_tests.isolate:208: ...
4 years, 7 months ago (2016-05-13 20:58:34 UTC) #37
Robert Sesek
https://codereview.chromium.org/1957643002/diff/220001/chrome/browser/media/encrypted_media_supported_types_browsertest.cc File chrome/browser/media/encrypted_media_supported_types_browsertest.cc (right): https://codereview.chromium.org/1957643002/diff/220001/chrome/browser/media/encrypted_media_supported_types_browsertest.cc#newcode337 chrome/browser/media/encrypted_media_supported_types_browsertest.cc:337: RegisterPepperCdm(command_line, "WidevineCdm", This can't use kWidevineCdmBaseDirectory ? https://codereview.chromium.org/1957643002/diff/220001/third_party/widevine/cdm/BUILD.gn File ...
4 years, 7 months ago (2016-05-13 22:32:43 UTC) #38
xhwang
https://codereview.chromium.org/1957643002/diff/220001/chrome/browser/media/encrypted_media_supported_types_browsertest.cc File chrome/browser/media/encrypted_media_supported_types_browsertest.cc (right): https://codereview.chromium.org/1957643002/diff/220001/chrome/browser/media/encrypted_media_supported_types_browsertest.cc#newcode337 chrome/browser/media/encrypted_media_supported_types_browsertest.cc:337: RegisterPepperCdm(command_line, "WidevineCdm", On 2016/05/13 22:32:42, Robert Sesek wrote: > ...
4 years, 7 months ago (2016-05-13 22:45:37 UTC) #39
Robert Sesek
lgtm
4 years, 7 months ago (2016-05-13 22:54:08 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957643002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957643002/220001
4 years, 7 months ago (2016-05-13 22:57:59 UTC) #43
commit-bot: I haz the power
Committed patchset #9 (id:220001)
4 years, 7 months ago (2016-05-13 23:03:28 UTC) #45
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/3569f3d0f45b847990522f1655fb324c55dca887 Cr-Commit-Position: refs/heads/master@{#393672}
4 years, 7 months ago (2016-05-13 23:04:58 UTC) #47
stgao
FYI: Findit's try-jobs identified this CL as the culprit to break compile on Mac https://findit-for-me.appspot.com/waterfall/build-failure?url=https%3A%2F%2Fbuild.chromium.org%2Fp%2Fchromium.chrome%2Fbuilders%2FGoogle%2520Chrome%2520Mac%2Fbuilds%2F10290 ...
4 years, 7 months ago (2016-05-14 06:30:18 UTC) #49
xhwang
On 2016/05/14 06:30:18, stgao wrote: > FYI: Findit's try-jobs identified this CL as the culprit ...
4 years, 7 months ago (2016-05-14 06:36:11 UTC) #50
xhwang
On 2016/05/14 06:36:11, xhwang wrote: > On 2016/05/14 06:30:18, stgao wrote: > > FYI: Findit's ...
4 years, 7 months ago (2016-05-14 07:20:57 UTC) #53
Ken Rockot(use gerrit already)
Lots of broken stuff. Can this be reverted? https://build.chromium.org/p/chromium/builders/Mac https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20%28dbg%29%281%29
4 years, 7 months ago (2016-05-15 00:38:27 UTC) #55
Ken Rockot(use gerrit already)
A revert of this CL (patchset #9 id:220001) has been created in https://codereview.chromium.org/1978123002/ by rockot@chromium.org. ...
4 years, 7 months ago (2016-05-15 00:52:58 UTC) #56
xhwang
4 years, 7 months ago (2016-05-15 05:15:13 UTC) #57
Message was sent while issue was closed.
Thanks for the revert. I'll need help from Mac guru's about the Mac issue. It
looks like the strip command won't work if I specify a different 'product_dir'.

The Linux failure is new to me. Seem like permission related:

[1:1:0514/204349:ERROR:ppapi_thread.cc(301)] Failed to load Pepper module from
/tmp/runS0ZqBJ/out/Debug/ClearKeyCdm/libclearkeycdmadapter.so (error:
/tmp/runS0ZqBJ/out/Debug/ClearKeyCdm/libclearkeycdmadapter.so: cannot open
shared object file: Operation not permitted)

I'll try to see if I can repro.

Powered by Google App Engine
This is Rietveld 408576698