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

Issue 2572883002: Convert USE_PROPRIETARY_CODECS to a buildflag header. (Closed)

Created:
4 years ago by brettw
Modified:
4 years ago
Reviewers:
xhwang
CC:
chromium-reviews, extensions-reviews_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, droger+watchlist_chromium.org, tommycli, Lei Zhang, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, jam, jasonroberts+watch_google.com, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, imcheng+watch_chromium.org, chromium-apps-reviews_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org, isheriff+watch_chromium.org, eme-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert USE_PROPRIETARY_CODECS to a buildflag header. Convert the preprocessor define to a buildflag //header defined in //media. The build arg is kept in //build/config/features.gni due to a dependency on WebRTC (described in a comment). R=xhwang@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/866e43b5348172572654dde22dfcf0556fe47d26

Patch Set 1 #

Total comments: 2

Patch Set 2 : No flag change #

Patch Set 3 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -137 lines) Patch
M build/config/BUILD.gn View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M build/config/features.gni View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/icon_loader_chromeos.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/media/encrypted_media_browsertest.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/media/encrypted_media_supported_types_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/media/chrome_key_systems.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M components/cdm/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/cdm/browser/cdm_message_filter_android.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/cdm/common/widevine_drm_delegate_android.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/cdm/renderer/android_key_systems.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M components/cdm/renderer/external_clear_key_key_system_properties.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M components/cdm/renderer/widevine_key_system_properties.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/media/media_browsertest.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M content/browser/media/media_canplaytype_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/media_color_browsertest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/media/media_redirect_browsertest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/media/media_source_browsertest.cc View 5 chunks +6 lines, -5 lines 0 comments Download
M media/BUILD.gn View 3 chunks +20 lines, -25 lines 0 comments Download
M media/base/audio_video_metadata_extractor_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/base/demuxer_perftest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/eme_constants.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/key_systems.cc View 6 chunks +8 lines, -7 lines 0 comments Download
M media/base/media_file_checker_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/base/mime_util_internal.cc View 6 chunks +7 lines, -6 lines 0 comments Download
M media/base/mime_util_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/blink/webcontentdecryptionmodulesession_impl.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M media/cast/sender/h264_vt_encoder_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/cdm/aes_decryptor.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M media/cdm/aes_decryptor_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/cdm/cdm_adapter_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/filters/audio_decoder_unittest.cc View 7 chunks +7 lines, -6 lines 0 comments Download
M media/filters/audio_file_reader_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_demuxer.h View 2 chunks +2 lines, -1 line 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M media/filters/stream_parser_factory.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M media/test/pipeline_integration_perftest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M media/test/pipeline_integration_test.cc View 12 chunks +13 lines, -12 lines 0 comments Download
M third_party/widevine/cdm/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/widevine/cdm/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/widevine/cdm/widevine_cdm_common.h View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (22 generated)
brettw
4 years ago (2016-12-13 22:14:15 UTC) #4
xhwang
lgtm with a question https://codereview.chromium.org/2572883002/diff/1/media/BUILD.gn File media/BUILD.gn (right): https://codereview.chromium.org/2572883002/diff/1/media/BUILD.gn#newcode28 media/BUILD.gn:28: "USE_PROPRIETARY_CODECS=$proprietary_codecs", not related to this ...
4 years ago (2016-12-13 22:45:04 UTC) #7
brettw
https://codereview.chromium.org/2572883002/diff/1/media/BUILD.gn File media/BUILD.gn (right): https://codereview.chromium.org/2572883002/diff/1/media/BUILD.gn#newcode28 media/BUILD.gn:28: "USE_PROPRIETARY_CODECS=$proprietary_codecs", On 2016/12/13 22:45:04, xhwang wrote: > not related ...
4 years ago (2016-12-13 22:57:15 UTC) #8
brettw
No flag change
4 years ago (2016-12-13 23:19:29 UTC) #9
brettw
Thanks, I had some problems with the GN variable being used by WebRTC in an ...
4 years ago (2016-12-13 23:21:48 UTC) #11
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/2572883002/20001
4 years ago (2016-12-13 23:22:45 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/353776)
4 years ago (2016-12-14 01:24:24 UTC) #16
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/2572883002/20001
4 years ago (2016-12-14 01:36:06 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/349368)
4 years ago (2016-12-14 04:59:52 UTC) #20
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/2572883002/20001
4 years ago (2016-12-14 05:18:00 UTC) #22
commit-bot: I haz the power
Failed to apply patch for chrome/common/chrome_content_client.cc: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-14 07:56:26 UTC) #24
brettw
Merge
4 years ago (2016-12-14 21:04:36 UTC) #25
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/2572883002/40001
4 years ago (2016-12-14 21:05:25 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/333281)
4 years ago (2016-12-14 23:11:58 UTC) #30
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/2572883002/40001
4 years ago (2016-12-15 18:33:10 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/355687)
4 years ago (2016-12-16 02:50:37 UTC) #34
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/2572883002/40001
4 years ago (2016-12-16 17:30:06 UTC) #36
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/866e43b5348172572654dde22dfcf0556fe47d26 Cr-Commit-Position: refs/heads/master@{#439175}
4 years ago (2016-12-16 20:21:02 UTC) #39
brettw
Committed patchset #3 (id:40001) manually as 866e43b5348172572654dde22dfcf0556fe47d26 (presubmit successful).
4 years ago (2016-12-16 20:22:12 UTC) #41
rjkroege
4 years ago (2016-12-16 22:30:42 UTC) #42
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2580093002/ by rjkroege@chromium.org.

The reason for reverting is: best-guess fix for:

/b/c/b/Android_Arm64_Builder__dbg_/src/buildtools/linux64/gn gen //out/Debug
--check
  -> returned 1
ERROR at build arg file (use "gn args <out_dir>" to edit):1:19: Build argument
has no effect.
ffmpeg_branding = "Chrome"
                  ^-------
The variable "ffmpeg_branding" was set as a build argument
but never appeared in a declare_args() block in any buildfile..

Powered by Google App Engine
This is Rietveld 408576698