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

Issue 2449873005: include boringssl headers from third_party explicitly (Closed)

Created:
4 years, 1 month ago by tfarina
Modified:
4 years, 1 month ago
CC:
alokp+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, halliwell+watch_chromium.org, lcwu+watch_chromium.org, ryanchung
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

include boringssl headers from third_party explicitly This also allow us to participate in DEPS checking, which will help catch instances of directories including BoringSSL without adding to build targets. This patch was partly generated by the following command lines: $ g grep -l -e '^#[[:blank:]]*include <\(openssl[^>]*\)>' | xargs sed -i '/^#[[:blank:]]*include/s/<\(openssl[^>]*\)>/"\1"/' $ g grep -l "#include \"openssl/" | xargs sed -i -e 's/\(#.* \)"\(openssl\/.*\)"/\1"third_party\/boringssl\/src\/include\/\2"/' The regex were taken from http://stackoverflow.com/a/25378698 and https://svn.boost.org/trac/boost/ticket/12057, and adapted to suit our needs. Then the includes were put in their right places with some manual editing and the help of tools/sort-headers.py. BUG=446558 R=davidben@chromium.org,thestig@chromium.org,jochen@chromium.org,slan@chromium.org Committed: https://crrev.com/29a3a174ef1227551d596b260d57506bbf493cc0 Cr-Commit-Position: refs/heads/master@{#428442}

Patch Set 1 #

Patch Set 2 : chrome #

Patch Set 3 : content #

Patch Set 4 : crypto #

Patch Set 5 : gcm_driver #

Patch Set 6 : components/webcrypto #

Patch Set 7 : net #

Patch Set 8 : rebase #

Total comments: 4

Patch Set 9 : review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -125 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/certificate_provider/certificate_provider_apitest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/common/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 2 comments Download
M chrome/common/extensions/api/networking_private/networking_private_crypto.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chromecast/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/media/base/decrypt_context_impl_clearkey.cc View 2 chunks +1 line, -1 line 0 comments Download
M components/gcm_driver/crypto/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/gcm_driver/crypto/gcm_message_cryptographer.cc View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M components/gcm_driver/crypto/p256_key_util.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M components/webcrypto/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/webcrypto/algorithms/aes_cbc.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M components/webcrypto/algorithms/aes_ctr.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M components/webcrypto/algorithms/aes_gcm.cc View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M components/webcrypto/algorithms/aes_kw.cc View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M components/webcrypto/algorithms/asymmetric_key_util.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M components/webcrypto/algorithms/asymmetric_key_util.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M components/webcrypto/algorithms/ec.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -6 lines 0 comments Download
M components/webcrypto/algorithms/ecdh.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M components/webcrypto/algorithms/ecdsa.cc View 1 2 3 4 5 2 chunks +7 lines, -7 lines 0 comments Download
M components/webcrypto/algorithms/hkdf.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M components/webcrypto/algorithms/hmac.cc View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M components/webcrypto/algorithms/pbkdf2.cc View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M components/webcrypto/algorithms/rsa.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M components/webcrypto/algorithms/rsa_oaep.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M components/webcrypto/algorithms/rsa_sign.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M components/webcrypto/algorithms/secret_key_util.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M components/webcrypto/algorithms/sha.cc View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M components/webcrypto/algorithms/util.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/webcrypto/algorithms/util.cc View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
M components/webcrypto/blink_key_handle.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/webcrypto/blink_key_handle.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M content/common/origin_trials/trial_token.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M content/common/sandbox_mac_system_access_unittest.mm View 1 2 2 chunks +1 line, -1 line 0 comments Download
M content/zygote/zygote_main_linux.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A crypto/DEPS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M crypto/aead.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M crypto/curve25519.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M crypto/ec_private_key.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M crypto/ec_private_key.cc View 1 2 3 2 chunks +9 lines, -9 lines 0 comments Download
M crypto/ec_signature_creator_impl.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M crypto/encryptor.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M crypto/hmac.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M crypto/openssl_util.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M crypto/rsa_private_key.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M crypto/rsa_private_key.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M crypto/secure_hash.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M crypto/signature_creator.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M crypto/signature_verifier.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M crypto/symmetric_key.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/socket_bio_adapter.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M net/socket/socket_bio_adapter.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M net/socket/socket_bio_adapter_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M net/ssl/ssl_platform_key_util.cc View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download
M net/ssl/ssl_platform_key_util_unittest.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (15 generated)
tfarina
David, everything and owner for crypto + net. Lei -> chrome Jochen -> components, content ...
4 years, 1 month ago (2016-10-27 20:51:56 UTC) #5
davidben
I haven't looked at this yet, but real quick before I forget, this is not ...
4 years, 1 month ago (2016-10-27 20:54:01 UTC) #6
slan
On 2016/10/27 20:54:01, davidben wrote: > I haven't looked at this yet, but real quick ...
4 years, 1 month ago (2016-10-27 21:43:15 UTC) #7
slan
4 years, 1 month ago (2016-10-27 21:43:56 UTC) #8
davidben
On 2016/10/27 21:43:15, slan wrote: > On 2016/10/27 20:54:01, davidben wrote: > > I haven't ...
4 years, 1 month ago (2016-10-27 21:57:23 UTC) #11
davidben
https://codereview.chromium.org/2449873005/diff/140001/chrome/common/DEPS File chrome/common/DEPS (right): https://codereview.chromium.org/2449873005/diff/140001/chrome/common/DEPS#newcode39 chrome/common/DEPS:39: Stray newline? https://codereview.chromium.org/2449873005/diff/140001/components/webcrypto/algorithms/ec.cc File components/webcrypto/algorithms/ec.cc (right): https://codereview.chromium.org/2449873005/diff/140001/components/webcrypto/algorithms/ec.cc#newcode4 components/webcrypto/algorithms/ec.cc:4: #include ...
4 years, 1 month ago (2016-10-27 22:30:36 UTC) #12
tfarina
Sentence removed. https://codereview.chromium.org/2449873005/diff/140001/chrome/common/DEPS File chrome/common/DEPS (right): https://codereview.chromium.org/2449873005/diff/140001/chrome/common/DEPS#newcode39 chrome/common/DEPS:39: On 2016/10/27 22:30:36, davidben wrote: > Stray ...
4 years, 1 month ago (2016-10-27 23:02:34 UTC) #17
davidben
lgtm
4 years, 1 month ago (2016-10-28 00:31:05 UTC) #20
slan
cast lgtm, thanks!
4 years, 1 month ago (2016-10-28 00:34:03 UTC) #21
jochen (gone - plz use gerrit)
lgtm
4 years, 1 month ago (2016-10-28 13:40:14 UTC) #22
Lei Zhang
chrome/ lgtm https://codereview.chromium.org/2449873005/diff/160001/chrome/common/DEPS File chrome/common/DEPS (right): https://codereview.chromium.org/2449873005/diff/160001/chrome/common/DEPS#newcode36 chrome/common/DEPS:36: "+third_party/boringssl/src/include", BTW, I think chrome/common/extensions/api/networking_private/networking_private_crypto.cc can be ...
4 years, 1 month ago (2016-10-28 17:19:25 UTC) #23
tfarina
https://codereview.chromium.org/2449873005/diff/160001/chrome/common/DEPS File chrome/common/DEPS (right): https://codereview.chromium.org/2449873005/diff/160001/chrome/common/DEPS#newcode36 chrome/common/DEPS:36: "+third_party/boringssl/src/include", On 2016/10/28 17:19:25, Lei Zhang wrote: > BTW, ...
4 years, 1 month ago (2016-10-28 18:39:50 UTC) #24
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/2449873005/160001
4 years, 1 month ago (2016-10-28 18:40:28 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 1 month ago (2016-10-28 18:48:04 UTC) #28
Lei Zhang
On 2016/10/28 18:39:50, tfarina wrote: > https://codereview.chromium.org/2449873005/diff/160001/chrome/common/DEPS > File chrome/common/DEPS (right): > > https://codereview.chromium.org/2449873005/diff/160001/chrome/common/DEPS#newcode36 > ...
4 years, 1 month ago (2016-10-28 18:51:16 UTC) #29
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/29a3a174ef1227551d596b260d57506bbf493cc0 Cr-Commit-Position: refs/heads/master@{#428442}
4 years, 1 month ago (2016-10-28 19:09:11 UTC) #31
tfarina
4 years, 1 month ago (2016-10-30 00:48:05 UTC) #32
Message was sent while issue was closed.
On Friday, October 28, 2016, <thestig@chromium.org> wrote:

> On 2016/10/28 18:39:50, tfarina wrote:
> > https://codereview.chromium.org/2449873005/diff/160001/
> chrome/common/DEPS
> > File chrome/common/DEPS (right):
> >
> >
> https://codereview.chromium.org/2449873005/diff/160001/
> chrome/common/DEPS#newcode36
> > chrome/common/DEPS:36: "+third_party/boringssl/src/include",
> > On 2016/10/28 17:19:25, Lei Zhang wrote:
> > > BTW, I think
> > > chrome/common/extensions/api/networking_private/networking_
> private_crypto.cc
> > can
> > > be moved into chrome/browser, and then this wouldn't be necessary
> anymore.
> > Maybe
> > > in a follow up CL?
> >
> > I will look in a follow up.
>
> Please give it a try. I think there is a slight benefit because then the
> code on
> Windows won't have to be duplicated between chrome.dll and
> chrome_child.dll. I
> haven't checked to make sure it can be moved to chrome/browser though.
>
> Done.  https://codereview.chromium.org/2464663002/





-- 
Thiago Farina

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698