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

Issue 772043004: Replace WIDEVINE_CDM_AVAILABLE with a gyp define 'enable_widevine_cdm'. (Closed)

Created:
6 years ago by sandersd (OOO until July 31)
Modified:
5 years ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, eme-reviews_chromium.org, posciak+watch_chromium.org, lcwu+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, stuartmorgan+watch_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, gunsch+watch_chromium.org, markusheintz_, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Replace WIDEVINE_CDM_AVAILABLE with a gyp define, enable_widevine_cdm. This CL does not replace all widevine-related conditions on Chrome branding in gyp files, but that change should be easier now. BUG=349182

Patch Set 1 #

Total comments: 18

Patch Set 2 : Switch to enable_widevine_cdm. #

Total comments: 21

Patch Set 3 : Address comments. #

Total comments: 1

Patch Set 4 : Fix #endif #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -95 lines) Patch
M build/common.gypi View 1 2 4 chunks +25 lines, -0 lines 0 comments Download
M build/config/BUILD.gn View 1 1 chunk +6 lines, -0 lines 0 comments Download
M build/config/features.gni View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/widevine_cdm_component_installer.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/content_settings/content_settings_browsertest.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/load_library_perf_test.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/media/encrypted_media_browsertest.cc View 1 10 chunks +16 lines, -16 lines 0 comments Download
M chrome/browser/media/encrypted_media_istypesupported_browsertest.cc View 1 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/media/chrome_key_systems.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/renderer/pepper/pepper_uma_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/plugins/plugin_uma.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/plugins/plugin_uma_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chromecast/media/base/key_systems_common.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chromecast/renderer/key_systems_cast.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/cdm/renderer/widevine_key_systems.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/render_media_client.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/render_media_client_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/widevine/cdm/BUILD.gn View 1 2 4 chunks +10 lines, -9 lines 0 comments Download
M third_party/widevine/cdm/android/widevine_cdm_version.h View 1 2 1 chunk +1 line, -7 lines 0 comments Download
M third_party/widevine/cdm/widevine_cdm.gyp View 1 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/widevine/cdm/widevine_cdm_common.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/widevine/cdm/widevine_cdm_version.h View 1 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (9 generated)
sandersd (OOO until July 31)
The .cc changes are purely mechanical. dalecurtis: please review for .gn sanity.
6 years ago (2014-12-02 22:55:33 UTC) #2
DaleCurtis
https://codereview.chromium.org/772043004/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/772043004/diff/1/build/common.gypi#newcode2674 build/common.gypi:2674: ['enable_widevine==1', { These are global defines which should always ...
6 years ago (2014-12-02 22:58:39 UTC) #3
sandersd (OOO until July 31)
https://codereview.chromium.org/772043004/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/772043004/diff/1/build/common.gypi#newcode2674 build/common.gypi:2674: ['enable_widevine==1', { On 2014/12/02 22:58:38, DaleCurtis wrote: > These ...
6 years ago (2014-12-02 23:04:45 UTC) #4
DaleCurtis
https://codereview.chromium.org/772043004/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/772043004/diff/1/build/common.gypi#newcode2674 build/common.gypi:2674: ['enable_widevine==1', { On 2014/12/02 23:04:44, sandersd wrote: > On ...
6 years ago (2014-12-02 23:12:17 UTC) #5
lcwu1
https://codereview.chromium.org/772043004/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/772043004/diff/1/build/common.gypi#newcode1988 build/common.gypi:1988: 'enable_widevine': 0, Drive-by comment: Could you add '%' to ...
6 years ago (2014-12-02 23:23:17 UTC) #7
gunsch
https://codereview.chromium.org/772043004/diff/1/chromecast/media/base/key_systems_common.cc File chromecast/media/base/key_systems_common.cc (right): https://codereview.chromium.org/772043004/diff/1/chromecast/media/base/key_systems_common.cc#newcode11 chromecast/media/base/key_systems_common.cc:11: #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. Drive-by comment: for all ...
6 years ago (2014-12-02 23:29:41 UTC) #9
ddorwin
https://codereview.chromium.org/772043004/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/772043004/diff/1/build/common.gypi#newcode1991 build/common.gypi:1991: # Widevine is distributed as a component for Mac ...
6 years ago (2014-12-02 23:31:56 UTC) #10
DaleCurtis
https://codereview.chromium.org/772043004/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/772043004/diff/1/build/common.gypi#newcode2674 build/common.gypi:2674: ['enable_widevine==1', { On 2014/12/02 23:31:56, ddorwin wrote: > On ...
6 years ago (2014-12-03 01:11:00 UTC) #11
ddorwin
https://codereview.chromium.org/772043004/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/772043004/diff/1/build/common.gypi#newcode2674 build/common.gypi:2674: ['enable_widevine==1', { On 2014/12/03 01:11:00, DaleCurtis wrote: > On ...
6 years ago (2014-12-03 01:29:45 UTC) #12
DaleCurtis
You'll need buy in from brettw@ for the build/config change, so if you're sure there's ...
6 years ago (2014-12-04 02:45:08 UTC) #13
sandersd (OOO until July 31)
Changes since first patch set: - Renamed enable_widevine to enable_widevine_cdm. - Moved args from media/media_options.gni ...
6 years ago (2014-12-12 01:34:47 UTC) #19
DaleCurtis
lgtm assuming there was no way to remove those build\config defines after all. https://codereview.chromium.org/772043004/diff/120001/build/common.gypi File ...
6 years ago (2014-12-12 23:07:28 UTC) #20
ddorwin
There will be another CL to remove all the version includes and build dependencies, etc., ...
6 years ago (2014-12-15 18:31:06 UTC) #21
sandersd (OOO until July 31)
> There will be another CL to remove all the version includes and build > ...
6 years ago (2014-12-15 21:51:22 UTC) #22
ddorwin
LGTM % 1 comment. Thanks. https://codereview.chromium.org/772043004/diff/140001/third_party/widevine/cdm/widevine_cdm_common.h File third_party/widevine/cdm/widevine_cdm_common.h (right): https://codereview.chromium.org/772043004/diff/140001/third_party/widevine/cdm/widevine_cdm_common.h#newcode64 third_party/widevine/cdm/widevine_cdm_common.h:64: Restore #endif // defined(ENABLE_PEPPER_CDMS) ...
6 years ago (2014-12-15 21:56:48 UTC) #23
gunsch
On 2014/12/15 21:56:48, ddorwin wrote: > LGTM % 1 comment. Thanks. > > https://codereview.chromium.org/772043004/diff/140001/third_party/widevine/cdm/widevine_cdm_common.h > ...
6 years ago (2014-12-16 01:37:56 UTC) #24
gunsch
On 2014/12/16 01:37:56, gunsch wrote: > On 2014/12/15 21:56:48, ddorwin wrote: > > LGTM % ...
6 years ago (2014-12-16 16:28:40 UTC) #25
sandersd (OOO until July 31)
brettw@: Please take a look at build/ and chrome/. (chrome/ changes are mostly mechanical.)
6 years ago (2014-12-16 19:41:36 UTC) #27
brettw
I don't understand the motivation for moving the widevine defines from being in a header ...
6 years ago (2014-12-17 19:05:46 UTC) #28
sandersd (OOO until July 31)
> The old way seemed strictly better. Can you > elaborate on the background for ...
6 years ago (2014-12-17 19:32:35 UTC) #29
ddorwin
On 2014/12/17 19:32:35, sandersd wrote: > > The old way seemed strictly better. Can you ...
6 years ago (2014-12-17 19:49:51 UTC) #30
brettw
6 years ago (2014-12-18 17:55:55 UTC) #31
On 2014/12/17 19:49:51, ddorwin wrote:
> On 2014/12/17 19:32:35, sandersd wrote:
> > > The old way seemed strictly better. Can you
> > > elaborate on the background for this change?
> > 
> > Certainly. The primary motivation is to move away from using Chrome branding
> to
> > toggle Widevine-related features and to instead make it independently
> > configurable. A secondary motivation is to eliminate the
> widevine_cdm_version_h
> > target, because it requires build system gymnastics. From our view, the new
> > setup is strictly better.
> 
> Specifically, moving away from the defines in the header allows us to remove
> dependencies on the widevine_cdm_version_h and an additional include directory
> from ~10 build files where the platform-specific version is not actually
needed.

Two global defines for this one feature just doesn't make sense to me. Again,
these are the 4th 5th global defines in the past 3 weeks I've personally
reviewed. This is not a scalable way to run a project.

It's not clear to me why reducing dependencies on the widevine_cdm_version_h
target matters or is desirable.

There are lots of ways to make include directories work or not have any at all.
I don't know what particularly you're referring to, where are the include dirs
you're trying to remove?

Powered by Google App Engine
This is Rietveld 408576698