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

Unified Diff: net/base/cert_status_flags.cc

Issue 7819009: For the SSL cert status, convert anonymous enum that gives bit values into a typedefed uint32. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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: net/base/cert_status_flags.cc
===================================================================
--- net/base/cert_status_flags.cc (revision 101367)
+++ net/base/cert_status_flags.cc (working copy)
@@ -9,7 +9,7 @@
namespace net {
-int MapNetErrorToCertStatus(int error) {
+CertStatus MapNetErrorToCertStatus(int error) {
switch (error) {
case ERR_CERT_COMMON_NAME_INVALID:
return CERT_STATUS_COMMON_NAME_INVALID;
@@ -36,11 +36,11 @@
case ERR_CERT_NOT_IN_DNS:
return CERT_STATUS_NOT_IN_DNS;
default:
- return 0;
+ return CERT_STATUS_NO_ERROR;
}
}
-int MapCertStatusToNetError(int cert_status) {
+int MapCertStatusToNetError(CertStatus cert_status) {
// A certificate may have multiple errors. We report the most
// serious error.

Powered by Google App Engine
This is Rietveld 408576698