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

Issue 465133004: Remove DenyCertForHost from SSLHostStateDelegate API. (Closed)

Created:
6 years, 4 months ago by jww
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, markusheintz_, jam, felt
Project:
chromium
Visibility:
Public.

Description

Remove DenyCertForHost from SSLHostStateDelegate API. The DENIED judgement set by DenyCertForHost is never actually used to make any interstitial decisions (it is, in fact, explicitly treated as unknown). To simplify the API and make it cleaner, this change removes DenyCertForHost from ssl_policy_backend.h and ssl_host_state_delegate.h and the related classes. BUG=402764 Committed: https://crrev.com/6a55df7b58ee45c958df5ad3e18f679d2c464106 Cr-Commit-Position: refs/heads/master@{#293569}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Adressed comments from pkasting #

Total comments: 2

Patch Set 3 : Style nit #

Total comments: 6

Patch Set 4 : Removed UNKNOWN and CertPolicy #

Total comments: 2

Patch Set 5 : Removed references to UNKNOWN #

Patch Set 6 : Rebase on ToT #

Total comments: 10

Patch Set 7 : Sleevi comments #

Total comments: 10

Patch Set 8 : More sleevi comments #

Patch Set 9 : Rebase on ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -457 lines) Patch
M chrome/browser/ssl/chrome_ssl_host_state_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -35 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate.cc View 1 2 3 4 5 6 7 8 9 chunks +57 lines, -78 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc View 1 2 3 4 5 6 7 8 22 chunks +49 lines, -71 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_ui.h View 1 chunk +5 lines, -7 lines 0 comments Download
M content/browser/ssl/ssl_policy.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -13 lines 0 comments Download
M content/browser/ssl/ssl_policy_backend.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -12 lines 0 comments Download
M content/browser/ssl/ssl_policy_backend.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -13 lines 0 comments Download
M content/public/browser/ssl_host_state_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -14 lines 0 comments Download
M net/cert/x509_cert_types.h View 1 2 3 1 chunk +0 lines, -46 lines 0 comments Download
M net/cert/x509_cert_types.cc View 1 2 3 1 chunk +0 lines, -60 lines 0 comments Download
M net/cert/x509_certificate_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -105 lines 0 comments Download

Messages

Total messages: 34 (5 generated)
jww
pkasting@, this is the API change to remove the unnecessary "Deny" methods.
6 years, 4 months ago (2014-08-19 22:24:38 UTC) #1
Peter Kasting
https://codereview.chromium.org/465133004/diff/1/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/465133004/diff/1/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode348 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:348: // Chrome we treats DENIED values as UNKNOWN. Can ...
6 years, 4 months ago (2014-08-22 00:57:53 UTC) #2
jww
https://codereview.chromium.org/465133004/diff/1/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/465133004/diff/1/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode348 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:348: // Chrome we treats DENIED values as UNKNOWN. On ...
6 years, 4 months ago (2014-08-22 03:49:35 UTC) #3
Peter Kasting
LGTM https://codereview.chromium.org/465133004/diff/20001/chrome/browser/ui/website_settings/website_settings.cc File chrome/browser/ui/website_settings/website_settings.cc (right): https://codereview.chromium.org/465133004/diff/20001/chrome/browser/ui/website_settings/website_settings.cc#newcode577 chrome/browser/ui/website_settings/website_settings.cc:577: InRememberCertificateErrorDecisionsGroup(); Old indenting was correct.
6 years, 4 months ago (2014-08-22 04:45:29 UTC) #4
jww
https://codereview.chromium.org/465133004/diff/20001/chrome/browser/ui/website_settings/website_settings.cc File chrome/browser/ui/website_settings/website_settings.cc (right): https://codereview.chromium.org/465133004/diff/20001/chrome/browser/ui/website_settings/website_settings.cc#newcode577 chrome/browser/ui/website_settings/website_settings.cc:577: InRememberCertificateErrorDecisionsGroup(); On 2014/08/22 04:45:29, Peter Kasting wrote: > Old ...
6 years, 4 months ago (2014-08-22 16:59:47 UTC) #5
jww
jam@, can you double check the content/ changes? rsleei@, can you double check the chrome/*ssl* ...
6 years, 4 months ago (2014-08-22 17:10:49 UTC) #6
Ryan Sleevi
https://codereview.chromium.org/465133004/diff/40001/content/browser/ssl/ssl_policy.cc File content/browser/ssl/ssl_policy.cc (left): https://codereview.chromium.org/465133004/diff/40001/content/browser/ssl/ssl_policy.cc#oldcode187 content/browser/ssl/ssl_policy.cc:187: backend_->DenyCertForHost(handler->ssl_info().cert.get(), You said this code isn't called, but this ...
6 years, 4 months ago (2014-08-23 01:33:20 UTC) #7
jww
https://codereview.chromium.org/465133004/diff/40001/content/browser/ssl/ssl_policy.cc File content/browser/ssl/ssl_policy.cc (left): https://codereview.chromium.org/465133004/diff/40001/content/browser/ssl/ssl_policy.cc#oldcode187 content/browser/ssl/ssl_policy.cc:187: backend_->DenyCertForHost(handler->ssl_info().cert.get(), On 2014/08/23 01:33:20, Ryan Sleevi wrote: > You ...
6 years, 4 months ago (2014-08-23 14:14:42 UTC) #8
jam
lgtm
6 years, 4 months ago (2014-08-25 02:08:16 UTC) #9
Ryan Sleevi
The great part about deleting code is you often get to delete even more. Holding ...
6 years, 4 months ago (2014-08-25 06:17:25 UTC) #10
felt
https://codereview.chromium.org/465133004/diff/40001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/465133004/diff/40001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode348 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:348: // we treats DENIED values as UNKNOWN. nit: "Chrome ...
6 years, 4 months ago (2014-08-25 17:13:44 UTC) #11
jww
Perhaps it's crazy post-Burning Man talk, but I've had a vision. Based on feedback, this ...
6 years, 3 months ago (2014-09-03 21:15:57 UTC) #12
Peter Kasting
https://codereview.chromium.org/465133004/diff/60001/content/browser/ssl/ssl_policy.cc File content/browser/ssl/ssl_policy.cc (right): https://codereview.chromium.org/465133004/diff/60001/content/browser/ssl/ssl_policy.cc#newcode48 content/browser/ssl/ssl_policy.cc:48: // The judgment must be UNKNOWN because QueryPolicy guarantees ...
6 years, 3 months ago (2014-09-03 23:02:55 UTC) #13
jww
https://codereview.chromium.org/465133004/diff/60001/content/browser/ssl/ssl_policy.cc File content/browser/ssl/ssl_policy.cc (right): https://codereview.chromium.org/465133004/diff/60001/content/browser/ssl/ssl_policy.cc#newcode48 content/browser/ssl/ssl_policy.cc:48: // The judgment must be UNKNOWN because QueryPolicy guarantees ...
6 years, 3 months ago (2014-09-03 23:33:50 UTC) #14
Peter Kasting
LGTM
6 years, 3 months ago (2014-09-03 23:43:14 UTC) #15
Ryan Sleevi
https://codereview.chromium.org/465133004/diff/100001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/465133004/diff/100001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode54 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:54: // implementation for more information. These last two sentences ...
6 years, 3 months ago (2014-09-04 00:17:25 UTC) #16
jww
https://codereview.chromium.org/465133004/diff/100001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/465133004/diff/100001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode54 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:54: // implementation for more information. On 2014/09/04 00:17:25, Ryan ...
6 years, 3 months ago (2014-09-04 01:06:31 UTC) #17
Ryan Sleevi
lgtm https://codereview.chromium.org/465133004/diff/120001/chrome/browser/ssl/chrome_ssl_host_state_delegate.h File chrome/browser/ssl/chrome_ssl_host_state_delegate.h (right): https://codereview.chromium.org/465133004/diff/120001/chrome/browser/ssl/chrome_ssl_host_state_delegate.h#newcode46 chrome/browser/ssl/chrome_ssl_host_state_delegate.h:46: // RevokeUserAllowExceptionsHard is the same as RevokeUserAllowExceptions but ...
6 years, 3 months ago (2014-09-04 19:41:20 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jww@chromium.org/465133004/120001
6 years, 3 months ago (2014-09-05 00:21:34 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ssl/chrome_ssl_host_state_delegate.cc: While running git apply --index -p1; error: patch failed: ...
6 years, 3 months ago (2014-09-05 05:13:48 UTC) #22
felt
Late to the party, but this is a nice change - thanks Joel. I notice ...
6 years, 3 months ago (2014-09-05 07:06:52 UTC) #23
felt
lgtm https://codereview.chromium.org/465133004/diff/120001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/465133004/diff/120001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode329 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:329: // lingering in the case that an old ...
6 years, 3 months ago (2014-09-05 07:13:18 UTC) #24
jww
On 2014/09/05 07:06:52, felt wrote: > Late to the party, but this is a nice ...
6 years, 3 months ago (2014-09-05 16:41:41 UTC) #25
jww
https://codereview.chromium.org/465133004/diff/120001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/465133004/diff/120001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode329 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:329: // lingering in the case that an old decision ...
6 years, 3 months ago (2014-09-05 17:03:46 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jww@chromium.org/465133004/160001
6 years, 3 months ago (2014-09-05 17:05:12 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/12729)
6 years, 3 months ago (2014-09-05 17:19:08 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jww@chromium.org/465133004/160001
6 years, 3 months ago (2014-09-05 17:23:00 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:160001) as e10405ced9e93f64d0f9bf7c829f190e40097e3d
6 years, 3 months ago (2014-09-05 20:01:05 UTC) #33
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:41:12 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6a55df7b58ee45c958df5ad3e18f679d2c464106
Cr-Commit-Position: refs/heads/master@{#293569}

Powered by Google App Engine
This is Rietveld 408576698