Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(875)

Issue 1924323002: Move Cast certificate verification code from extensions to components. (Closed)

Created:
4 years, 7 months ago by ryanchung
Modified:
4 years, 7 months ago
CC:
blundell+watchlist_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, droger+watchlist_chromium.org, extensions-reviews_chromium.org, sdefresne+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move Cast certificate verification code from extensions to components. The Cast certificate verification code was previously only used by the Cast extension. Cast platform would also like to use this code. It did not make sense to leave this code in extensions as extensions is disabled on platforms like Android while Cast supports Android TVs. This CL moves //extensions/common/cast to //components/cast_certificate. The associated unittests are now included in the components unittests. Test data for these unittests relocated from //extensions/test/data to //components/test/data. BUG=607373 Committed: https://crrev.com/d318d76b90c04216eff4ffcf9f0a06d122708589 Cr-Commit-Position: refs/heads/master@{#391834}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Addresses eroman's comments #

Patch Set 3 : Alphabetized the OWNERS file #

Patch Set 4 : OWNERS for //components/cast_certificate.gypi #

Patch Set 5 : Add components/test/data/cast_certificate/OWNERS #

Patch Set 6 : Rebase only #

Total comments: 4

Patch Set 7 : Simplified OWNERS files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -3190 lines) Patch
M chrome/chrome_common.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/networking_private/networking_private_crypto.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/networking_private/networking_private_crypto_unittest.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A + components/cast_certificate.gypi View 1 chunk +18 lines, -17 lines 0 comments Download
A components/cast_certificate/BUILD.gn View 1 chunk +44 lines, -0 lines 0 comments Download
A + components/cast_certificate/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A components/cast_certificate/OWNERS View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A + components/cast_certificate/cast_cert_validator.h View 1 3 chunks +5 lines, -9 lines 0 comments Download
A + components/cast_certificate/cast_cert_validator.cc View 5 chunks +5 lines, -10 lines 0 comments Download
A + components/cast_certificate/cast_cert_validator_test_helpers.h View 1 2 chunks +11 lines, -7 lines 0 comments Download
A + components/cast_certificate/cast_cert_validator_test_helpers.cc View 1 2 chunks +14 lines, -10 lines 0 comments Download
A + components/cast_certificate/cast_cert_validator_unittest.cc View 1 14 chunks +23 lines, -30 lines 0 comments Download
A + components/cast_certificate/cast_root_ca_cert_der-inc.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/cast_certificate/eureka_root_ca_der-inc.h View 0 chunks +-1 lines, --1 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
A components/test/data/cast_certificate/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A + components/test/data/cast_certificate/certificates/audio_ref_dev_test_chain_3.pem View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/cast_certificate/certificates/cast_root_ca.pem View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/cast_certificate/certificates/chromecast_audio.pem View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/cast_certificate/certificates/chromecast_gen1.pem View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/cast_certificate/certificates/chromecast_gen1_reissue.pem View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/cast_certificate/certificates/chromecast_gen2.pem View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/cast_certificate/certificates/eureka_ca.pem View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/cast_certificate/certificates/fugu.pem View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/cast_certificate/certificates/mtk_audio_dev.pem View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/cast_certificate/certificates/unchained.pem View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/cast_certificate/certificates/vizio.pem View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/test/data/cast_certificate/signeddata/2ZZBG9_FA8FCA3EF91A.pem View 1 1 chunk +1 line, -1 line 0 comments Download
A + components/test/data/cast_certificate/signeddata/AudioReferenceDevTest.pem View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util_unittest.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
D extensions/common/cast/cast_cert_validator.h View 1 chunk +0 lines, -103 lines 0 comments Download
D extensions/common/cast/cast_cert_validator.cc View 1 chunk +0 lines, -302 lines 0 comments Download
D extensions/common/cast/cast_cert_validator_test_helpers.h View 1 chunk +0 lines, -38 lines 0 comments Download
D extensions/common/cast/cast_cert_validator_test_helpers.cc View 1 chunk +0 lines, -87 lines 0 comments Download
D extensions/common/cast/cast_cert_validator_unittest.cc View 1 chunk +0 lines, -423 lines 0 comments Download
D extensions/common/cast/cast_root_ca_cert_der-inc.h View 1 chunk +0 lines, -148 lines 0 comments Download
D extensions/common/cast/eureka_root_ca_der-inc.h View 1 chunk +0 lines, -146 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M extensions/extensions.gypi View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M extensions/extensions_tests.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M extensions/extensions_tests.gypi View 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/extensions_unittests.isolate View 1 chunk +1 line, -0 lines 0 comments Download
D extensions/test/data/cast_certificates/audio_ref_dev_test_chain_3.pem View 1 chunk +0 lines, -264 lines 0 comments Download
D extensions/test/data/cast_certificates/cast_root_ca.pem View 1 chunk +0 lines, -80 lines 0 comments Download
D extensions/test/data/cast_certificates/chromecast_audio.pem View 1 chunk +0 lines, -164 lines 0 comments Download
D extensions/test/data/cast_certificates/chromecast_gen1.pem View 1 chunk +0 lines, -149 lines 0 comments Download
D extensions/test/data/cast_certificates/chromecast_gen1_reissue.pem View 1 chunk +0 lines, -157 lines 0 comments Download
D extensions/test/data/cast_certificates/chromecast_gen2.pem View 1 chunk +0 lines, -157 lines 0 comments Download
D extensions/test/data/cast_certificates/eureka_ca.pem View 1 chunk +0 lines, -78 lines 0 comments Download
D extensions/test/data/cast_certificates/fugu.pem View 1 chunk +0 lines, -242 lines 0 comments Download
D extensions/test/data/cast_certificates/mtk_audio_dev.pem View 1 chunk +0 lines, -255 lines 0 comments Download
D extensions/test/data/cast_certificates/unchained.pem View 1 chunk +0 lines, -82 lines 0 comments Download
D extensions/test/data/cast_certificates/vizio.pem View 1 chunk +0 lines, -157 lines 0 comments Download
D extensions/test/data/cast_signeddata/2ZZBG9_FA8FCA3EF91A.pem View 1 chunk +0 lines, -31 lines 0 comments Download
D extensions/test/data/cast_signeddata/AudioReferenceDevTest.pem View 1 chunk +0 lines, -35 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
ryanchung
4 years, 7 months ago (2016-04-28 16:46:31 UTC) #3
eroman
lgtm https://codereview.chromium.org/1924323002/diff/1/chrome/common/extensions/api/networking_private/networking_private_crypto_unittest.cc File chrome/common/extensions/api/networking_private/networking_private_crypto_unittest.cc (right): https://codereview.chromium.org/1924323002/diff/1/chrome/common/extensions/api/networking_private/networking_private_crypto_unittest.cc#newcode40 chrome/common/extensions/api/networking_private/networking_private_crypto_unittest.cc:40: // TODO(eroman): Avoid duplicating the data. Side-note: this ...
4 years, 7 months ago (2016-04-28 19:50:21 UTC) #4
ryanchung
Thanks! https://codereview.chromium.org/1924323002/diff/1/components/cast_certificate/OWNERS File components/cast_certificate/OWNERS (right): https://codereview.chromium.org/1924323002/diff/1/components/cast_certificate/OWNERS#newcode1 components/cast_certificate/OWNERS:1: [email protected] On 2016/04/28 19:50:20, eroman wrote: > should ...
4 years, 7 months ago (2016-04-28 20:30:56 UTC) #5
sheretov
LGTM Would it make sense to replicate components/cast_certificate/OWNERS in components/test/data/cast_certificate/OWNERS?
4 years, 7 months ago (2016-04-29 15:19:21 UTC) #6
ryanchung
On 2016/04/29 15:19:21, sheretov wrote: > Would it make sense to replicate components/cast_certificate/OWNERS in > ...
4 years, 7 months ago (2016-04-29 15:43:54 UTC) #7
ryanchung
+jochen Please review //chrome and //components +asargent Please review //extensions and chrome/common/extensions/api/networking_private +kmarshall Please review ...
4 years, 7 months ago (2016-04-29 15:56:26 UTC) #9
eroman
https://codereview.chromium.org/1924323002/diff/100001/components/cast_certificate/OWNERS File components/cast_certificate/OWNERS (right): https://codereview.chromium.org/1924323002/diff/100001/components/cast_certificate/OWNERS#newcode1 components/cast_certificate/OWNERS:1: [email protected] Rather than duplicating the owners from chromecast/OWNERS, can ...
4 years, 7 months ago (2016-04-29 16:47:57 UTC) #10
ryanchung
https://codereview.chromium.org/1924323002/diff/100001/components/cast_certificate/OWNERS File components/cast_certificate/OWNERS (right): https://codereview.chromium.org/1924323002/diff/100001/components/cast_certificate/OWNERS#newcode1 components/cast_certificate/OWNERS:1: [email protected] On 2016/04/29 16:47:57, eroman wrote: > Rather than ...
4 years, 7 months ago (2016-04-29 17:14:44 UTC) #11
asargent_no_longer_on_chrome
extensions parts lgtm
4 years, 7 months ago (2016-04-29 17:35:58 UTC) #12
jochen (gone - plz use gerrit)
lgtm
4 years, 7 months ago (2016-05-02 17:02:59 UTC) #13
Kevin M
-me (not working on Cast anymore) +vadimgo
4 years, 7 months ago (2016-05-02 21:53:18 UTC) #15
vadimgo
lgtm
4 years, 7 months ago (2016-05-05 17:13:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1924323002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1924323002/120001
4 years, 7 months ago (2016-05-05 17:17:17 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-05-05 17:22:27 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 17:24:06 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d318d76b90c04216eff4ffcf9f0a06d122708589
Cr-Commit-Position: refs/heads/master@{#391834}

Powered by Google App Engine
This is Rietveld 408576698