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

Issue 2206093004: Change SSLStatus to carry a vector of SCT statuses instead of counters (Closed)

Created:
4 years, 4 months ago by estark
Modified:
4 years, 4 months ago
Reviewers:
jam
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change SSLStatus to carry a vector of SCT statuses instead of counters SSLStatus consumers only care about the number of SCTs with different statuses, so previously SSLStatus exposed counters: |num_invalid_scts|, |num_unknown_scts|, and |num_valid_scts|. However, in seeking to add a new type of SCT validation status, it became clear that this design is a bit messy: the layers between the net stack and the UI code that consumes the status have to know about all the possible validation statuses. Moreover, we take a list of SCTs and tally them up by status, only to convert those tallies back into a list of statuses. So instead, I've changed SSLStatus to hold a vector of SCTVerifyStatus enums, instead of counters for each possible status. Also note that connections typically have no more than 3 or 4 SCTs, so keeping a vector of SCTVerifyStatus instead of counters will not use a whole lot more memory. This change is based on top of https://codereview.chromium.org/2208803002/. BUG=634006 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/41b454d9282c8dca0800b1d07dee9f38d99b3403 Cr-Commit-Position: refs/heads/master@{#409721}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -60 lines) Patch
M chrome/browser/ssl/chrome_security_state_model_client.cc View 1 chunk +3 lines, -8 lines 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc View 2 chunks +140 lines, -0 lines 1 comment Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 chunk +2 lines, -7 lines 0 comments Download
M content/common/ssl_status_serialization.cc View 3 chunks +42 lines, -8 lines 0 comments Download
M content/common/ssl_status_serialization_unittest.cc View 3 chunks +44 lines, -6 lines 0 comments Download
M content/public/common/ssl_status.h View 3 chunks +8 lines, -7 lines 0 comments Download
M content/public/common/ssl_status.cc View 2 chunks +1 line, -24 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
estark
jam, this isn't particularly related to what you've been doing but since you have SSLStatus ...
4 years, 4 months ago (2016-08-03 23:48:24 UTC) #6
jam
lgtm (re the test, imo it's fine to have duplication there)
4 years, 4 months ago (2016-08-04 01:38:14 UTC) #9
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/2206093004/1
4 years, 4 months ago (2016-08-04 04:24:35 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-04 05:10:28 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 05:12:38 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/41b454d9282c8dca0800b1d07dee9f38d99b3403
Cr-Commit-Position: refs/heads/master@{#409721}

Powered by Google App Engine
This is Rietveld 408576698