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

Issue 2363653002: Cleanup unreachable cert adding code (Closed)

Created:
4 years, 3 months ago by Ryan Sleevi
Modified:
4 years, 2 months ago
Reviewers:
jam, stevenjb, svaldez, satorux1
CC:
chromium-reviews, jam, cbentzel+watch_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, davidben
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup unreachable cert adding code The ability to use Chrome to import certs directly into the OS was removed in M49. This cleans up the related code, which is now unreachable. Most notably, this removes OnCertAdded/OnCertRemoved from the CertDatabase, which were intended to relate to direct user additions of certs, and instead folds the notifications (which only exist for ChromeOS/Linux when using chrome://certificates) into a generic OnCertDBChanged, which better reflects the cross-platform knowledge we have available. BUG=514767 Committed: https://crrev.com/1778469523cb7726e71898f2bd1362ff49eb973d Cr-Commit-Position: refs/heads/master@{#424638}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove stray include #

Patch Set 3 : Nuke more Android code #

Patch Set 4 : Compile fix #

Patch Set 5 : Linux fix #

Patch Set 6 : Compile fixes #

Patch Set 7 : Removed mimetype and formatted #

Patch Set 8 : CrOS fix: Stop trying to implicitly cast scoped-to-raw #

Patch Set 9 : Android BUILD fix #

Patch Set 10 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -854 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/platform_keys/platform_keys_nss.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -16 lines 0 comments Download
D chrome/browser/ssl/ssl_add_certificate.h View 1 chunk +0 lines, -29 lines 0 comments Download
D chrome/browser/ssl/ssl_add_certificate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -206 lines 0 comments Download
D chrome/browser/ssl/ssl_add_certificate_android.cc View 1 chunk +0 lines, -43 lines 0 comments Download
M chromeos/cert_loader.h View 1 chunk +1 line, -3 lines 0 comments Download
M chromeos/cert_loader.cc View 1 chunk +2 lines, -14 lines 0 comments Download
M chromeos/cert_loader_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/infobars/core/infobar_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -10 lines 0 comments Download
M net/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java View 1 2 1 chunk +0 lines, -41 lines 0 comments Download
M net/android/network_library.h View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M net/android/network_library.cc View 1 2 1 chunk +0 lines, -16 lines 0 comments Download
M net/base/mime_util.h View 1 2 3 4 5 6 1 chunk +0 lines, -11 lines 0 comments Download
M net/cert/caching_cert_verifier.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/cert/caching_cert_verifier.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/cert/cert_database.h View 3 chunks +6 lines, -23 lines 0 comments Download
M net/cert/cert_database.cc View 1 chunk +2 lines, -13 lines 0 comments Download
M net/cert/cert_database_android.cc View 1 chunk +4 lines, -24 lines 0 comments Download
M net/cert/cert_database_ios.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M net/cert/cert_database_mac.cc View 2 chunks +1 line, -42 lines 0 comments Download
M net/cert/cert_database_nss.cc View 1 2 3 4 2 chunks +0 lines, -49 lines 0 comments Download
M net/cert/cert_database_openssl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -41 lines 0 comments Download
M net/cert/cert_database_win.cc View 2 chunks +0 lines, -43 lines 0 comments Download
M net/cert/nss_cert_database.h View 1 2 3 4 5 3 chunks +3 lines, -12 lines 0 comments Download
M net/cert/nss_cert_database.cc View 1 2 3 4 5 7 chunks +21 lines, -30 lines 0 comments Download
M net/cert/nss_cert_database_chromeos_unittest.cc View 4 chunks +2 lines, -11 lines 0 comments Download
M net/quic/chromium/quic_stream_factory.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M net/quic/chromium/quic_stream_factory.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -6 lines 0 comments Download
M net/quic/chromium/quic_stream_factory_test.cc View 1 2 3 4 5 2 chunks +2 lines, -54 lines 0 comments Download
M net/socket/client_socket_factory.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -8 lines 0 comments Download
M net/socket/client_socket_pool_manager_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M net/socket/client_socket_pool_manager_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -16 lines 0 comments Download
M net/spdy/spdy_session_pool.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -9 lines 0 comments Download
M net/ssl/ssl_client_auth_cache.h View 1 chunk +1 line, -1 line 0 comments Download
M net/ssl/ssl_client_auth_cache.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/ssl/ssl_client_auth_cache_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 47 (38 generated)
Ryan Sleevi
+cc david because he likes nuking code :) Steven, This was a quick, late-night hack ...
4 years, 3 months ago (2016-09-22 08:39:55 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/2363653002/diff/1/chrome/browser/chromeos/platform_keys/platform_keys_nss.cc File chrome/browser/chromeos/platform_keys/platform_keys_nss.cc (left): https://codereview.chromium.org/2363653002/diff/1/chrome/browser/chromeos/platform_keys/platform_keys_nss.cc#oldcode638 chrome/browser/chromeos/platform_keys/platform_keys_nss.cc:638: PK11SlotInfo* slot = Lovely persistent memory leak :( https://codereview.chromium.org/2363653002/diff/1/net/cert/cert_database_mac.cc ...
4 years, 3 months ago (2016-09-22 08:44:29 UTC) #5
svaldez
lgtm, seems reasonable. Though does the Android Certificate Mime Type enum still need to exist ...
4 years, 3 months ago (2016-09-22 16:50:26 UTC) #14
Ryan Sleevi
satorux: chrome/browser/chromeos/platform_keys is probably most relevant/substantial, but then also all the chromeos/ changes jam: This ...
4 years, 3 months ago (2016-09-23 20:49:05 UTC) #26
jam
lgtm
4 years, 2 months ago (2016-09-26 15:10:28 UTC) #35
satorux1
lgtm. +stevenjb@ as fyi
4 years, 2 months ago (2016-09-30 05:59:41 UTC) #37
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/2363653002/180001
4 years, 2 months ago (2016-10-12 01:29:54 UTC) #44
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 2 months ago (2016-10-12 01:36:45 UTC) #45
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 01:40:18 UTC) #47
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/1778469523cb7726e71898f2bd1362ff49eb973d
Cr-Commit-Position: refs/heads/master@{#424638}

Powered by Google App Engine
This is Rietveld 408576698