Commit 0ee13e37 authored by davidben's avatar davidben Committed by Commit bot

Rename use_nss to use_nss_certs in gyp and grit.

This matches the gn name and is less confusing with use_openssl and
use_openssl_certs both existing. The preprocessor flag will follow
in another CL. 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.

BUG=462040
TBR=wez@chromium.org

Review URL: https://codereview.chromium.org/1085923002

Cr-Commit-Position: refs/heads/master@{#325541}
parent b283c18b
...@@ -682,8 +682,14 @@ ...@@ -682,8 +682,14 @@
# NSS usage. # NSS usage.
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_openssl==0', { ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_openssl==0', {
'use_nss_certs%': 1,
# TODO(davidben): use_nss is deprecated and will be removed. See
# https://crbug.com/462040.
'use_nss%': 1, 'use_nss%': 1,
}, { }, {
'use_nss_certs%': 0,
# TODO(davidben): use_nss is deprecated and will be removed. See
# https://crbug.com/462040.
'use_nss%': 0, 'use_nss%': 0,
}], }],
...@@ -1086,6 +1092,7 @@ ...@@ -1086,6 +1092,7 @@
'use_openssl%': '<(use_openssl)', 'use_openssl%': '<(use_openssl)',
'use_openssl_certs%': '<(use_openssl_certs)', 'use_openssl_certs%': '<(use_openssl_certs)',
'use_nss%': '<(use_nss)', 'use_nss%': '<(use_nss)',
'use_nss_certs%': '<(use_nss_certs)',
'use_udev%': '<(use_udev)', 'use_udev%': '<(use_udev)',
'os_bsd%': '<(os_bsd)', 'os_bsd%': '<(os_bsd)',
'os_posix%': '<(os_posix)', 'os_posix%': '<(os_posix)',
...@@ -2030,8 +2037,8 @@ ...@@ -2030,8 +2037,8 @@
['use_ash==1', { ['use_ash==1', {
'grit_defines': ['-D', 'use_ash'], 'grit_defines': ['-D', 'use_ash'],
}], }],
['use_nss==1', { ['use_nss_certs==1', {
'grit_defines': ['-D', 'use_nss'], 'grit_defines': ['-D', 'use_nss_certs'],
}], }],
['use_ozone==1', { ['use_ozone==1', {
'grit_defines': ['-D', 'use_ozone'], 'grit_defines': ['-D', 'use_ozone'],
...@@ -3008,7 +3015,8 @@ ...@@ -3008,7 +3015,8 @@
['<(use_glib)==1 and >(nacl_untrusted_build)==0', { ['<(use_glib)==1 and >(nacl_untrusted_build)==0', {
'defines': ['USE_GLIB=1'], 'defines': ['USE_GLIB=1'],
}], }],
['<(use_nss)==1 and >(nacl_untrusted_build)==0', { ['<(use_nss_certs)==1 and >(nacl_untrusted_build)==0', {
# TODO(davidben): Rename this to USE_NSS_CERTS. https://crbug.com/462040
'defines': ['USE_NSS=1'], 'defines': ['USE_NSS=1'],
}], }],
['<(chromeos)==1 and >(nacl_untrusted_build)==0', { ['<(chromeos)==1 and >(nacl_untrusted_build)==0', {
......
...@@ -146,7 +146,7 @@ if (use_ash) { ...@@ -146,7 +146,7 @@ if (use_ash) {
if (use_nss_certs) { if (use_nss_certs) {
grit_defines += [ grit_defines += [
"-D", "-D",
"use_nss", "use_nss_certs",
] ]
} }
......
...@@ -753,7 +753,7 @@ ...@@ -753,7 +753,7 @@
<section> <section>
<h3 i18n-content="advancedSectionTitleCertificates"></h3> <h3 i18n-content="advancedSectionTitleCertificates"></h3>
<div> <div>
<if expr="use_nss or is_win or is_macosx"> <if expr="use_nss_certs or is_win or is_macosx">
<div class="settings-row"> <div class="settings-row">
<button id="certificatesManageButton" <button id="certificatesManageButton"
i18n-content="certificatesManageButton"></button> i18n-content="certificatesManageButton"></button>
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<link rel="stylesheet" href="factory_reset_overlay.css"> <link rel="stylesheet" href="factory_reset_overlay.css">
<link rel="stylesheet" href="../help/channel_change_page.css"> <link rel="stylesheet" href="../help/channel_change_page.css">
</if> </if>
<if expr="use_nss"> <if expr="use_nss_certs">
<link rel="stylesheet" href="certificate_manager.css"> <link rel="stylesheet" href="certificate_manager.css">
<link rel="stylesheet" href="certificate_tree.css"> <link rel="stylesheet" href="certificate_tree.css">
</if> </if>
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
<include src="chromeos/power_overlay.html"> <include src="chromeos/power_overlay.html">
<include src="factory_reset_overlay.html"> <include src="factory_reset_overlay.html">
</if> </if>
<if expr="use_nss"> <if expr="use_nss_certs">
<include src="certificate_manager.html"> <include src="certificate_manager.html">
</if> </if>
</div> </div>
......
...@@ -53,7 +53,7 @@ var PointerOverlay = options.PointerOverlay; ...@@ -53,7 +53,7 @@ var PointerOverlay = options.PointerOverlay;
var PowerOverlay = options.PowerOverlay; var PowerOverlay = options.PowerOverlay;
var UIAccountTweaks = uiAccountTweaks.UIAccountTweaks; var UIAccountTweaks = uiAccountTweaks.UIAccountTweaks;
</if> </if>
<if expr="use_nss"> <if expr="use_nss_certs">
<include src="certificate_tree.js"> <include src="certificate_tree.js">
<include src="certificate_manager.js"> <include src="certificate_manager.js">
<include src="certificate_restore_overlay.js"> <include src="certificate_restore_overlay.js">
......
...@@ -3423,7 +3423,7 @@ ...@@ -3423,7 +3423,7 @@
'../components/components.gyp:crash_component', '../components/components.gyp:crash_component',
], ],
}], }],
['use_nss==1', { ['use_nss_certs==1', {
'sources': [ '<@(chrome_browser_nss_sources)' ], 'sources': [ '<@(chrome_browser_nss_sources)' ],
'conditions': [ 'conditions': [
['chromeos==1', { ['chromeos==1', {
......
...@@ -2930,7 +2930,7 @@ ...@@ -2930,7 +2930,7 @@
'../ui/gl/gl.gyp:gl', '../ui/gl/gl.gyp:gl',
], ],
}], }],
['use_nss==1', { ['use_nss_certs==1', {
'sources': [ '<@(chrome_browser_ui_nss_sources)' ], 'sources': [ '<@(chrome_browser_ui_nss_sources)' ],
}], }],
['enable_themes==0', { ['enable_themes==0', {
......
...@@ -2574,7 +2574,7 @@ ...@@ -2574,7 +2574,7 @@
}], }],
], ],
}], }],
['OS != "android" and (use_nss == 1 or use_openssl_certs == 1)', { ['OS != "android" and (use_nss_certs == 1 or use_openssl_certs == 1)', {
'sources': [ 'sources': [
'common/net/x509_certificate_model_unittest.cc', 'common/net/x509_certificate_model_unittest.cc',
], ],
......
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
}, },
], ],
}], }],
['use_nss==1', { ['use_nss_certs==1', {
'targets': [ 'targets': [
{ {
'target_name': 'crypto_test_support', 'target_name': 'crypto_test_support',
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
'scoped_test_system_nss_key_slot.h', 'scoped_test_system_nss_key_slot.h',
], ],
'conditions': [ 'conditions': [
['use_nss==0', { ['use_nss_certs==0', {
'sources!': [ 'sources!': [
'scoped_test_nss_db.cc', 'scoped_test_nss_db.cc',
'scoped_test_nss_db.h', 'scoped_test_nss_db.h',
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
}], }],
], ],
} }
]}, { # use_nss==0 ]}, { # use_nss_certs==0
'targets': [ 'targets': [
{ {
'target_name': 'crypto_test_support', 'target_name': 'crypto_test_support',
......
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
'net_test_jni_headers', 'net_test_jni_headers',
], ],
}], }],
[ 'use_nss != 1', { [ 'use_nss_certs != 1', {
'sources!': [ 'sources!': [
'ssl/client_cert_store_chromeos_unittest.cc', 'ssl/client_cert_store_chromeos_unittest.cc',
'ssl/client_cert_store_nss_unittest.cc', 'ssl/client_cert_store_nss_unittest.cc',
...@@ -607,7 +607,7 @@ ...@@ -607,7 +607,7 @@
'../third_party/protobuf/protobuf.gyp:py_proto', '../third_party/protobuf/protobuf.gyp:py_proto',
], ],
}], }],
['use_openssl == 0 and (use_nss == 1 or OS == "ios")', { ['use_openssl == 0 and (use_nss_certs == 1 or OS == "ios")', {
'conditions': [ 'conditions': [
[ 'desktop_linux == 1 or chromeos == 1', { [ 'desktop_linux == 1 or chromeos == 1', {
'dependencies': [ 'dependencies': [
...@@ -651,7 +651,7 @@ ...@@ -651,7 +651,7 @@
'dns/mock_mdns_socket_factory.h' 'dns/mock_mdns_socket_factory.h'
] ]
}], }],
[ 'use_nss != 1', { [ 'use_nss_certs != 1', {
'sources!': [ 'sources!': [
'test/cert_test_util_nss.cc', 'test/cert_test_util_nss.cc',
], ],
......
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
], ],
}, },
], ],
[ 'use_nss != 1', { [ 'use_nss_certs != 1', {
'sources!': [ 'sources!': [
'cert/cert_verify_proc_nss.cc', 'cert/cert_verify_proc_nss.cc',
'cert/cert_verify_proc_nss.h', 'cert/cert_verify_proc_nss.h',
...@@ -410,7 +410,7 @@ ...@@ -410,7 +410,7 @@
['include', '^base/network_config_watcher_mac\\.cc$'], ['include', '^base/network_config_watcher_mac\\.cc$'],
['include', '^base/platform_mime_util_mac\\.mm$'], ['include', '^base/platform_mime_util_mac\\.mm$'],
# The iOS implementation only partially uses NSS and thus does not # The iOS implementation only partially uses NSS and thus does not
# defines |use_nss|. In particular the |USE_NSS| preprocessor # defines |use_nss_certs|. In particular the |USE_NSS| preprocessor
# definition is not used. The following files are needed though: # definition is not used. The following files are needed though:
['include', '^cert/cert_verify_proc_nss\\.cc$'], ['include', '^cert/cert_verify_proc_nss\\.cc$'],
['include', '^cert/cert_verify_proc_nss\\.h$'], ['include', '^cert/cert_verify_proc_nss\\.h$'],
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
'protoc': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', 'protoc': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
'proto_out_base': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', 'proto_out_base': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
'proto_out_dir': '<(proto_out_base)/remoting/proto', 'proto_out_dir': '<(proto_out_base)/remoting/proto',
'use_nss': 0, 'use_nss_certs': 0,
'nacl_untrusted_build': 1, 'nacl_untrusted_build': 1,
'chromium_code': 1, 'chromium_code': 1,
}, },
......
...@@ -248,7 +248,7 @@ places are noted in the table below. ...@@ -248,7 +248,7 @@ places are noted in the table below.
| `use_glib` (0/1) | `is_linux` (true/false) | (global) | | `use_glib` (0/1) | `is_linux` (true/false) | (global) |
| `use_gnome_keyring` (0/1) | `is_desktop_linux` (true/false) | | | `use_gnome_keyring` (0/1) | `is_desktop_linux` (true/false) | |
| `use_goma` (0/1) | `use_goma` (true/false) | `//build/toolchain/goma.gni` | | `use_goma` (0/1) | `use_goma` (true/false) | `//build/toolchain/goma.gni` |
| `use_nss` (0/1) | `use_nss_certs` (true/false) | `//build/config/crypto.gni` (Many of these conditions can be deleted, see the "SSL" notes on targets below.) | | `use_nss_certs` (0/1) | `use_nss_certs` (true/false) | `//build/config/crypto.gni` (Many of these conditions can be deleted, see the "SSL" notes on targets below.) |
| `use_openssl` (0/1) | `use_openssl` (true/false) | `//build/config/crypto.gni` (Many of these conditions can be deleted, see the "SSL" notes on targets below.) | | `use_openssl` (0/1) | `use_openssl` (true/false) | `//build/config/crypto.gni` (Many of these conditions can be deleted, see the "SSL" notes on targets below.) |
| `use_pango` (0/1) | `use_pango` (true/false) | `//build/config/ui.gni` | | `use_pango` (0/1) | `use_pango` (true/false) | `//build/config/ui.gni` |
| `use_ozone` (0/1) | `use_ozone` (true/false) | `//build/config/ui.gni` | | `use_ozone` (0/1) | `use_ozone` (true/false) | `//build/config/ui.gni` |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment