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

Unified Diff: content/common/ssl_status_serialization.cc

Issue 2241213002: Distinguish between SCT invalidity reasons in UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing review comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/ssl_status_serialization.cc
diff --git a/content/common/ssl_status_serialization.cc b/content/common/ssl_status_serialization.cc
index a105e7ea450fcd953edec497eeb1a87b32eb00c7..d4e5c7f7a35cf1ad0472fd8835fbdfd4a11c8d50 100644
--- a/content/common/ssl_status_serialization.cc
+++ b/content/common/ssl_status_serialization.cc
@@ -31,11 +31,12 @@ bool CheckSecurityStyle(int security_style) {
bool CheckSCTStatus(uint32_t sct_status) {
switch (sct_status) {
case net::ct::SCT_STATUS_LOG_UNKNOWN:
- case net::ct::SCT_STATUS_INVALID:
+ case net::ct::SCT_STATUS_INVALID_SIGNATURE:
case net::ct::SCT_STATUS_OK:
- case net::ct::SCT_STATUS_MAX:
+ case net::ct::SCT_STATUS_INVALID_TIMESTAMP:
return true;
case net::ct::SCT_STATUS_NONE:
+ case net::ct::SCT_STATUS_MAX:
Avi (use Gerrit) 2016/08/16 15:25:47 This is wrong (see my other note). MAX shouldn't b
Eran Messeri 2016/08/16 16:06:09 Done, removed.
// SCT_STATUS_NONE should never happen, so it isn't valid to
// receive a status of NONE in a serialized SSLStatus.
return false;

Powered by Google App Engine
This is Rietveld 408576698