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

Issue 1082123003: Rename USE_NSS to USE_NSS_CERTS. (Closed)

Created:
5 years, 8 months ago by davidben
Modified:
5 years, 8 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, cbentzel+watch_chromium.org, michaelpg+watch-options_chromium.org, chromoting-reviews_chromium.org, tfarina, lcwu+watch_chromium.org, jam, rickyz+watch_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, gunsch+watch_chromium.org, stevenjb+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@use-nss-certs
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename USE_NSS to USE_NSS_CERTS. USE_NSS is confusing because it's not actually the analog of USE_OPENSSL; it's the analog to USE_OPENSSL_CERTS. This is in preparation for the chimera build which will set USE_OPENSSL and USE_NSS(_CERTS). This CL was partially done automatically by the following command: git grep -l USE_NSS | xargs sed -i -e 's/defined(USE_NSS)/defined(USE_NSS_CERTS)/' The remaining were caught by the following command and fixed manually: git grep 'USE_NSS\([^_]\|$\)' Finally, the following command verified nothing in a separate repository was sensitive to this change: find . -name '*.cc' -o -name '*.h' | xargs grep 'USE_NSS\([^_]\|$\)' For now, the old name is still defined, but not used within Chromium. A follow-up CL will remove deprecated use_nss and USE_NSS #defines together which will then cause downstream churn. Though from a grep of known downstreams, the churn seems to be fairly minimal. The removal is split from this CL so that, if we need to revert, the CL to revert is small. TBR=pneubeck@chromium.org BUG=462040 Committed: https://crrev.com/71f35ff13af84be1b97483307e050d83c2179134 Cr-Commit-Position: refs/heads/master@{#325710}

Patch Set 1 #

Patch Set 2 : long line #

Total comments: 7

Patch Set 3 : rebase #

Patch Set 4 : thakis comments #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -246 lines) Patch
M build/build_config.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M build/common.gypi View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M build/config/BUILD.gn View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector_browsertest.cc View 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/certificate_manager_browsertest.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/net/x509_certificate_model.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/net/x509_certificate_model.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/net/x509_certificate_model_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/plugin/chrome_content_plugin_client.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/importer/nss_decryptor.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/importer/nss_decryptor.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chromecast/browser/url_request_context_factory.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chromecast/renderer/cast_content_renderer_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/onc/onc_certificate_importer_impl_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_helper_linux.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_validation_query.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/ownership/mock_owner_key_util.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/ownership/mock_owner_key_util.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/ownership/owner_key_util.h View 2 chunks +4 lines, -4 lines 0 comments Download
M components/ownership/owner_key_util_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/ownership/owner_key_util_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/webcrypto/nss/aes_kw_nss.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M components/webcrypto/nss/rsa_hashed_algorithm_nss.cc View 1 2 3 4 5 chunks +6 lines, -6 lines 0 comments Download
M components/webcrypto/nss/util_nss.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M components/webcrypto/test/test_helpers.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/ppapi_plugin/ppapi_plugin_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/zygote/zygote_main_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M crypto/encryptor.h View 2 chunks +2 lines, -2 lines 0 comments Download
M crypto/encryptor_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M crypto/nss_util.h View 3 chunks +3 lines, -3 lines 0 comments Download
M crypto/nss_util.cc View 14 chunks +22 lines, -23 lines 0 comments Download
M crypto/rsa_private_key.h View 6 chunks +6 lines, -6 lines 0 comments Download
M crypto/rsa_private_key_nss.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M crypto/rsa_private_key_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M crypto/signature_creator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M crypto/symmetric_key.h View 3 chunks +3 lines, -3 lines 0 comments Download
M net/BUILD.gn View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/base/crypto_module.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/keygen_handler.h View 1 chunk +4 lines, -4 lines 0 comments Download
M net/base/keygen_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/keygen_handler_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M net/cert/cert_verify_proc.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/cert_verify_proc_unittest.cc View 9 chunks +10 lines, -9 lines 0 comments Download
M net/cert/ct_objects_extractor_nss.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/ev_root_ca_metadata.h View 4 chunks +4 lines, -4 lines 0 comments Download
M net/cert/ev_root_ca_metadata.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M net/cert/ev_root_ca_metadata_unittest.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M net/cert/multi_threaded_cert_verifier.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/test_root_certs.h View 4 chunks +4 lines, -4 lines 0 comments Download
M net/cert/test_root_certs_nss.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/test_root_certs_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M net/cert/x509_certificate.h View 5 chunks +5 lines, -5 lines 0 comments Download
M net/cert/x509_certificate.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M net/cert/x509_certificate_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/x509_util_nss.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/x509_util_nss.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M net/http/des.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/net_common.gypi View 1 chunk +3 lines, -2 lines 0 comments Download
M net/quic/crypto/aead_base_decrypter.h View 1 chunk +3 lines, -3 lines 0 comments Download
M net/quic/crypto/aead_base_encrypter.h View 1 chunk +3 lines, -3 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_decrypter_nss.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_encrypter_nss.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/quic/crypto/chacha20_poly1305_decrypter_nss.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M net/quic/crypto/chacha20_poly1305_encrypter_nss.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M net/socket/client_socket_factory.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M net/ssl/channel_id_service.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/test/cert_test_util.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/test/net_test_suite.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher_impl_unittest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M remoting/host/token_validator_base.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (10 generated)
davidben
And here's the fun and exciting one. I opted not to keep USE_NSS around. It ...
5 years, 8 months ago (2015-04-14 20:53:56 UTC) #2
Ryan Sleevi
lgtm
5 years, 8 months ago (2015-04-16 01:49:11 UTC) #3
davidben
+thakis for build/OWNERS +jam for top-level OWNERS since this is just a mass rename. You ...
5 years, 8 months ago (2015-04-16 16:16:42 UTC) #5
Nico
build lgtm https://codereview.chromium.org/1082123003/diff/20001/build/build_config.h File build/build_config.h (right): https://codereview.chromium.org/1082123003/diff/20001/build/build_config.h#newcode64 build/build_config.h:64: #if defined(USE_OPENSSL) && defined(USE_NSS_CERTS) On 2015/04/16 16:16:42, ...
5 years, 8 months ago (2015-04-16 16:33:11 UTC) #6
davidben
https://codereview.chromium.org/1082123003/diff/20001/build/build_config.h File build/build_config.h (right): https://codereview.chromium.org/1082123003/diff/20001/build/build_config.h#newcode64 build/build_config.h:64: #if defined(USE_OPENSSL) && defined(USE_NSS_CERTS) On 2015/04/16 16:33:11, Nico wrote: ...
5 years, 8 months ago (2015-04-16 18:32:01 UTC) #7
jam
lgtm per the owners policy https://www.chromium.org/developers/owners-files#TOC-When-to-use-To-Be-Reviewed-TBR-, you can just tbr owners for stuff like this
5 years, 8 months ago (2015-04-16 20:42:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1082123003/60001
5 years, 8 months ago (2015-04-17 16:07:18 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/47860) linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 8 months ago (2015-04-17 16:18:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1082123003/80001
5 years, 8 months ago (2015-04-17 16:50:19 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/57162)
5 years, 8 months ago (2015-04-17 17:07:47 UTC) #18
davidben
TBR pneubeck for chromeos/network/onc/onc_certificate_importer_impl_unittest.cc
5 years, 8 months ago (2015-04-17 17:14:42 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1082123003/80001
5 years, 8 months ago (2015-04-17 17:16:49 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-17 20:54:55 UTC) #23
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/71f35ff13af84be1b97483307e050d83c2179134 Cr-Commit-Position: refs/heads/master@{#325710}
5 years, 8 months ago (2015-04-17 20:57:20 UTC) #24
pneubeck (no reviews)
5 years, 8 months ago (2015-04-20 09:39:58 UTC) #25
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698